f1-gsap
was forked from f1-dom
, which wraps f1
to animate style's of dom elements.
All style properties are API-compatible with GSAP.
TweenMax.set()
is used as the parser.
npm install f1-gsap
{
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
MIT, see LICENSE.md for details.