Dart implementation of figma's spring curves, and a collection of their built in spring curves.
Based on Figma's blog post about spring animations
- FigmaSpringCurve class that allows you to define a spring curve using stiffness, damping and mass
- 4 Predefined curves that are built-in on figma
- Run
flutter pub add figma_spring_curve
final curve = FigmaSpringCurve(300, 20, 1);
final bouncyCurve = FigmaSpringCurve.bouncy;
- This packaged was developed in house by the developers of Ping
- Feel free to file issues on Github!