plus1tv / react-anime

✨ (ノ´ヮ´)ノ*:・゚✧ A super easy animation library for React!
https://codepen.io/collection/nrkjgo/
MIT License
1.55k stars 81 forks source link

Behavior of direction and delay in version @2.1.0 #48

Closed launcherx closed 6 years ago

launcherx commented 6 years ago

Hi. I am using React 16.4.2 and react-anime 2.1.0. And I have problem with direction and delay. If I use direction="reverse". Delay param flips.

Please see codesandox: Sample 1 (React 15 & anime 0.3.4) - Delay works correctly Sample 2 (React 16 & anime 2.1.0) - Delay flips

Code in both examples are identical only version of react and react-anime changes. So question is does behavior of delay in 2.1.0 is correct. And if this behavior is correct how can i make that delay works like in version 0.3.4

Thanks