The Flouvia site already moved with character: a button that bounces under the cursor, the blue curtain between pages, the drop that grows until it fills the screen. But when we audited it, we found 28 different animation curves and about 25 hand-written durations. The same hover lasted 160, 250, 300 or 500 milliseconds, depending on the day it was written. With that much variation, nothing becomes recognizable. We replaced all of it with Cauce, a system of springs built on the model Apple uses for motion in iOS. Here is why, how we decided and how we built it.
A curve doesn’t know you interrupted it
Almost all motion on the web is written as curves: a fixed duration and a shape, like cubic-bezier(0.34, 1.56, 0.64, 1). From the first frame, the animation knows where it will be at every millisecond. That works as long as nobody touches it.
The trouble starts when you interrupt it. Open a menu and close it halfway. With a curve, the browser starts a new animation from wherever it was, but without the velocity it had: the motion stops dead and starts over. It feels like a jolt, even if nobody can say why.
A spring is different: it’s physics. It has a position, a velocity and a target. If the target changes halfway, it keeps the velocity it had and curves toward the new one, like a real object. Since iOS 17, SwiftUI has described its springs this way, with just two numbers: how long it seems to take (the duration) and how far it overshoots its target (the bounce).
A menu that opens and, halfway, closes
- Curve Stops dead and starts over 0.6 s ease-out
- Spring Keeps its velocity and curves toward the new target The menu’s own: flood to open, 0.6 s to close
Behind those two numbers is a simple formula. Stiffness comes from the duration, k = (2π / duration)², and the damping ratio from the bounce, ζ = 1 − bounce. With a bounce of 0, the spring arrives without overshooting; with 0.3, it overshoots by 4.6% once and settles. So any motion comes down to two numbers anyone can understand.
How we decided: a lab, not an opinion
You don’t decide motion by reading a spec. You decide it by feeling it. We built a lab: a page where every curve we had runs next to its proposed replacement, on desktop and on the phone, and every decision gets voted on right there.
- Round one: the inventory. The 28 curves, grouped into families (the ones that bounce, the ones that slow down, the ones that start and stop gently), and a proposal of eight pieces to replace them, each with a live demo.
- Round two: springs for everything. We decided not to mix: not a single hand-drawn curve, not even in the curtain between pages. That forced us to solve the hard cases.
- Round three: the spec sheet. The final values, the names and one last sign-off before touching the code.
The curves we already liked carried over to springs almost unchanged. The ones that slow down, like a block entering on scroll, have a twin spring that starts with an impulse, some initial velocity: the difference is under 1%. Anticipation, the gesture that pulls back before it leaves, is a spring with a backward impulse.
The old curves, as springs
The entrance
- Old curve cubic-bezier(0.16, 1, 0.3, 1), 0.9 s
- rise spring 0.8 s, no bounce, impulse +8
Average difference
0.6%
The curtain
- Old curve cubic-bezier(0.7, 0, 0.2, 1), 0.38 s
- flood spring 0.8 s, bounce 0.3
Navigates: 98.5% at 0.40 s (before, at 0.38 s)
Two cases didn’t fit. A spring at rest starts with its highest acceleration, so it can never start slow and speed up toward the end, which was exactly the shape of our curtain and our exits. For the curtain, we found something we like better than the original: a bouncy spring that overshoots upward, where the screen is already covered. The bounce is there, but nobody sees it. Exits we solved another way: they got short (a quarter of a second), because what leaves shouldn’t keep you waiting, and the footer’s word, which did need a wind-up, starts with an impulse backward.
Eight pieces, six durations, three bounces
Cauce is Spanish for riverbed, the course water follows. In Flouvia, it’s the course every moving thing follows. It joins a family: Gota, our icon library; Onda, our interface sounds; and Cauce, our motion system.
The whole system fits in a table. Almost every Flouvia motion uses one of these pieces (the rest, a spring from the scale), chosen for what it does, not for how it used to look:
| Piece | For | Duration | Bounce |
|---|---|---|---|
| drop | What you touch: button hover and press | 0.35 s | 0.2, firm |
| bloom | What arrives: headlines, notices, context menus | 0.6 s | 0.3, the drop |
| sheet | What opens: sheets, modals, accordions | 0.5 s | 0 |
| rise | What enters on scroll | 0.8 s | 0, with impulse |
| ebb | What leaves: closing, dismissing | 0.25 s | 0 |
| flood | What covers: the transition between pages | 0.8 s | 0.3, hidden |
| surge | What pulls back before moving | 0.25 s | 0, backward impulse |
| drift | Scenes that follow the scroll | 0.5 s | 0 |
Durations live on a six-step scale (0.25, 0.35, 0.5, 0.6, 0.8 and 1.2 seconds), and no motion invents its own. There are three bounces, each with a role: flat for almost everything, firm for what you touch and the drop for what arrives. The site’s old spring overshot its target by 10%; the new ones overshoot by 1.5% when you touch them and 4.6% when something appears. What feels expensive isn’t a big bounce. It’s restraint.
The eight pieces
Each curve, from its start until it lands within 0.2% of its target
Target
-
drop
What you touch
+1.5%0.35 s · bounce 0.2
-
bloom
What arrives
+4.6%0.6 s · bounce 0.3
-
sheet
What opens
0.5 s · bounce 0
-
rise
What enters
0.8 s · bounce 0 · impulse +8
-
ebb
What leaves
0.25 s · bounce 0
-
flood
What covers
+4.6%0.8 s · bounce 0.3
-
surge
What pulls back before moving
−5.2%0.25 s · bounce 0 · impulse −10
-
drift
What follows the scroll
0.5 s · bounce 0
The eight pieces
Each curve, from its start until it lands within 0.2% of its target
Target
-
drop
What you touch
+1.5%0.35 s · bounce 0.2
-
bloom
What arrives
+4.6%0.6 s · bounce 0.3
-
sheet
What opens
0.5 s · bounce 0
-
rise
What enters
0.8 s · bounce 0impulse +8
-
ebb
What leaves
0.25 s · bounce 0
-
flood
What covers
+4.6%0.8 s · bounce 0.3
-
surge
What pulls back before moving
−5.2%0.25 s · bounce 0impulse −10
-
drift
What follows the scroll
0.5 s · bounce 0
Six principles
Pieces alone don’t make a signature. A Flouvia project is recognizable because everything follows the same rules:
- It starts where you touch it. The menu grows from its button; the drop that takes you into a case grows from the cursor.
- It responds instantly and settles slowly. A button covers 98% of its travel in 0.21 seconds; the last stretch takes its time.
- One bounce, like a drop. It overshoots a little, once, and comes to rest. It never wobbles.
- It leaves faster than it arrives. What arrives deserves attention; what leaves doesn’t.
- It can be interrupted. Whatever changes course halfway keeps its velocity.
- Without motion, it still makes sense. With the system’s Reduce Motion setting on, nothing travels or bounces: everything fades in place in 200 milliseconds.
How we built it
Everything comes from one file that holds the pieces, the scale and the physics. Three things are generated from it, so they can never drift apart:
- The CSS tokens. Each spring becomes a 48-point
linear()curve with its real duration: the time it takes to settle within 0.2% of its target. In the markup, a single class is enough,spring-drop, and an automated test fails if the tokens stop matching the physics. - The GSAP presets. JavaScript scenes read from the same source:
gsap.to(el, { y: 0, ...tween('rise') }). - Live physics. Whatever can be interrupted, like the menu circle, runs on a JavaScript spring that integrates position and velocity every frame.
The menu circle’s radius, measured
Measured in Chrome at 1512 × 900
Opening
One sample every 50 ms
Radius that covers the screen: 1660 px. Past here, no longer visible. Settles; the clip is removed.
Closed halfway and reopened
180 ms after closing; one sample every 40 ms
The blue curtain between pages has a detail you only notice when it’s missing. We used to navigate when the animation ended. But a spring has a long, invisible tail, so now we navigate as soon as it covers 98.5% of the screen, at 0.40 seconds: almost the same as with the old curve. Its bounce overshoots upward, and a strip of the same blue, which only exists on the way out, fills the gap it would leave at the bottom.
Scroll has its own rule. Scenes that tell a story catch up with your finger on a spring, like Apple’s product pages. Whatever is pinned to the scroll as if you were dragging the page, a sheet that sinks or an image sequence, stays rigid: that’s direct manipulation, and on iOS nothing bounces while you’re dragging it.
The migration touched 124 files across the site, the client portal and the team console. The 28 curves and 25 durations are gone.
What we found along the way
Replacing a whole system surfaces what nobody was looking at:
- An old iPhone would have gotten stuck. Safari has understood
linear()curves since version 17.2. In CSS, an older browser simply falls back to a regular curve, but JavaScript’s animation API throws an error, and the transition between pages would have cancelled the navigation: the link would have gone nowhere. Now, only on those browsers, the system uses the closest classic curve. - A checkmark that never made its gesture. The confirmation when you sign in to the portal was meant to grow as it appeared, but two scale properties overrode each other and it stayed at 75% of its size. We caught it while moving it to springs.
- A glow tied to a curve. The light sketches on our Services page computed their flash from how far the old spring overshot. With the new, more restrained one, we adjusted the gain so they shine just as bright.
- Fourteen kinds of control that jumped. We checked reduced motion by hovering and pressing every control on 17 pages, measuring whether anything changed size or position. We found fourteen; now there are none.
What’s next
Cauce is the second piece of the Flouvia design system, after color. The third is sound, which we cover in Onda: how we designed the sound of Flouvia. Next come Gota’s gestures, on the same physics, and a component library that inherits all of it. The goal hasn’t changed: a Flouvia project should be recognizable by how it moves, even without the logo.