figma_spring_curve 1.0.0+1
figma_spring_curve: ^1.0.0+1 copied to clipboard
Dart implementation of figma's spring curves. Also includes 4 prebuilt spring curves
Figma Spring Curve #
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
Features #
- FigmaSpringCurve class that allows you to define a spring curve using stiffness, damping and mass
- 4 Predefined curves that are built-in on figma
Getting started #
- Run
flutter pub add figma_spring_curve
Usage #
final curve = FigmaSpringCurve(300, 20, 1);
final bouncyCurve = FigmaSpringCurve.bouncy;
Additional information #
- This packaged was developed in house by the developers of Ping
- Feel free to file issues on Github!