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
- Understand arguments when working with measureSpring().
- Understand fps when working with measureSpring().
- Understand threshold? when working with measureSpring().
- Understand config? when working with measureSpring().
- 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.