Skip to content
This repository was archived by the owner on Apr 14, 2020. It is now read-only.

I can't believe it's not springs | Dynamic duration

Compare
Choose a tag to compare
@itsdouges itsdouges released this 19 Feb 10:36
· 121 commits to master since this release

This release introduces the concept of dynamic duration which is enabled by default for all animations. The duration is increased/decreased using the size of the target element, whether the element is collapsing or expanding, and how far it has to travel across the screen. Like to dip into code? Here's where the goods are!

Don't want dynamic duration? That's okay too. Pass duration as usual to the animation component to override it.

For example:

<Move duration={500}>
  ...
</Move>

Have fun! 💯💯💯💯

P.S. This release also loosens the peer dependency requirements of react, react-dom, and emotion.