sc0ttj / component

A tiny library for isomorphic JavaScript components
MIT License
2 stars 1 forks source link

Feature: add spring physics based animation #33

Closed sc0ttj closed 3 years ago

sc0ttj commented 3 years ago

"Spring-based" animations are animations that use spring-based physics to determine the duration of the animation, as well as the "bounciness", friction, speed, etc.

These kinds of animations are much more flexible and responsive than traditionally "tweened" animations - where you usually define a fixed duration, from/to value, a fixed easing function, etc.

There's loads of widely-used spring-based animation libraries for React, so Component should have one too - in the form of a lightweight, optional add-on like tweenState.

Each of the following candidates are decent because:

Here's a list:

sc0ttj commented 3 years ago

Done. Added https://github.com/raphaelameaume/lemonade-spring as springTo addon..