Figma Spring Curve

License: MIT pub package

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!

Libraries

figma_spring_curve