How Figma put the bounce in spring animations
Figma's spring animations model motion as a damped spring governed by mass (F = m·a), stiffness (Hooke's law, F = −k·x) and damping (F = −b·v), using WebKit's SpringSolver to compute positions. Because designers don't think in physics constants, the team collapsed the three parameters into a two-axis handle: horizontal position maps to the oscillation period (mass/stiffness ratio), and vertical position maps to the damping ratio, which controls overshoot. A numerical-optimization approach to fitting the curve to the handle proved unstable and was dropped. A separate duration handle marks when long-tailed bounces end, and spring values export for Framer Motion (mass/damping/stiffness) or react-spring (mass/friction/tension).
Related posts
- Making Your React Native Gestures Feel Natural
Shopify Engineering mediumAdeptDraggable UI in React Native feels more natural when gesture end-handling accounts for release velocity, not just finger position. Using the Shop app's bottom Sheet as an example, adding a multiplied `velocityY` to the final position lets quick flicks open or close the sheet. Replacing a fixed 600 ms timing animation with `withSpring` makes the settle animation respect distance and momentum. Dividing drag distance when pulling past the open position adds rubber-band resistance that signals the sheet can't go further.
- A tale of two parameter architectures—and how we unified them
Figma mediumAdept
Figma replaced the separate architectures behind component properties (scoped, layer-level parameters) and variables (global, library-level parameters) with one parametrization system. At the data model level, both systems now share a single parameter typespace and a single binding store, so each layer property can bind to at most one parameter and cross-system bindings such as component property to variable become possible. At runtime, every parameter system follows the same pipeline: usage tracking, property-level invalidation, transitive resolution across aliases and system boundaries, and a consolidated update/re-render path. That shared foundation is meant to support future parameter systems such as a CMS without rebuilding binding infrastructure.
- How we rebuilt the foundations of component instances
Figma mediumAdept
Figma replaced its decade-old Instance Updater, a self-contained runtime that resolved component instances and also did its own layout and variable evaluation, with Materializer, a generic framework for deriving subtrees of the document tree from feature-defined blueprints. Materializer uses push-based invalidation with automatic dependency tracking recorded during materialization. It was paired with a shared runtime orchestration layer that runs systems in a predictable order and eliminates "back-dirty" feedback loops. The rewrite was validated by running old and new runtimes side by side on hundreds of thousands of production files. Variable mode changes in large files got 40–50% faster, and Materializer now underpins rich text and slots.
- How We Built the Add to Favorite Animation in Shop
Shopify Engineering mediumAdeptShop's Add to Favorite animation, where a product thumbnail pops in, scales, and drops into a bouncing heart tab-bar icon, is built in React Native with Reanimated by driving the whole sequence from a single shared progress value that steps through 1, 2, 3 and so on, each step with its own duration and easing from the motion spec. Each property (opacity, scale, translateY, icon fill and bounce) is mapped from that progress value with clamped interpolation, and the filled heart is a second icon faded in over the outline. Using one shared value guarantees the icon moves the instant the thumbnail disappears, creating a cinematic match cut. An earlier setTimeout-based approach broke that timing when the JS thread was busy; Reanimated's withDelay keeps the timer on the UI thread.
- Announcing MotionMark 1.3
WebKit mediumAdeptMotionMark 1.3, Apple's browser graphics benchmark, now detects the browser's requestAnimationFrame frequency and uses it as the target frame rate instead of assuming 60fps. Browsers running at 120Hz therefore get less time per frame and score lower, so cross-browser comparisons should be run with the display set to 60Hz. Scoring drops the unreliable "flat" profile and counts only animation frames, excluding the slower DOM-mutation frames that added noise. Several subtests were also fixed: Multiply's complexity cap was raised and its hiding method changed, Paths got a more consistent workload, and Design no longer clips text in a way that inflated scores.