react-component / tween-one

Animate One React Element
https://tween-one.vercel.app/
MIT License
380 stars 30 forks source link

specify the initial state of an animation #30

Closed omar-bz closed 6 years ago

omar-bz commented 6 years ago

Hi, how to specify the initial value of an animation,

for example if I want to go from translateX(50%) to translateX(100%) how this is achievable in code.

jljsj33 commented 6 years ago
<TweenOne style={{ transform: 'translateX(50%)' }} animation={{ x: '100%'}} />

or use class..