0.1.2 • Published 8 years ago

f1-gsap v0.1.2

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

f1-gsap npm

experimental

f1-gsap was forked from f1-dom, which wraps f1 to animate style's of dom elements.

All styles properties are API-Compatible with GSAP. TweenMax.set is used as the parser.

Usage

npm install f1-gsap

Sample state definition:

{
  states: {
    idle: {
      elButton: {
        xPercent: 0,
        y: 100,
        backgroundColor: 'rgb(255, 0, 255)',
        cursor: 'pointer',
        display: 'inline-block'
      },

      text: {
        color: 'rgb(33,33,33)', // or '#212121'
        rotationZ: 0
      }
    }
  }
}

See the test folder for more examples

License

MIT, see LICENSE.md for details.

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago