Capítulo 16 de 988

Chapter 16: measureSpring()

Core Idea

<AvailableFrom v="2. 0.

Key Concepts

  • Arguments
  • fps
  • threshold?
  • config?
  • from?
  • to?
  • Compatibility
  • See also

Code Examples

const config: Partial<SpringConfig> = {
  damping: 200,
};

measureSpring({
  fps: 30,
  config: {
    damping: 200,
  },
}); // => 23
  • What it demonstrates: Usage pattern for measureSpring() from the official docs.

Key Takeaways

  1. Understand arguments when working with measureSpring().
  2. Understand fps when working with measureSpring().
  3. Understand threshold? when working with measureSpring().
  4. Understand config? when working with measureSpring().
  5. Understand from? when working with measureSpring().

Connects To

  • Absolute Fill: related page in the Fundamentals & Core Concepts section.
  • Animating Properties: related page in the Fundamentals & Core Concepts section.
  • Animation Math: related page in the Fundamentals & Core Concepts section.