Scroll animations on iPhone Safari: two evenings with a card that kept shaking
The new Frinter landing shook by 1–8 pixels on iPhone. 15 commits over two evenings, before and after numbers, and one rule: let the browser drive the scroll.

On Thursday at 21:59 I shipped the new Frinter landing. Dark, with big type and felt triangles. Inside, two scenes driven by scrolling: a tree that grows out of a single triangle, and four cards that stack on top of each other like a deck. On my laptop it looked fine. On my iPhone the whole section title jumped up and down by a few pixels on every frame.
It turned into 15 commits over two evenings. This post is about what actually helped and what only looked like it helped. The general rules for making a site built with AI fast and accessible are on the portal, in the guide on SEO and accessibility for an AI-built site. Here is my own case, with numbers.
Why a focus app’s landing needs animation at all
Frinter is my focus system. Day plan, work sessions, sleep, time for the people close to me. Since my burnout in 2021–2022 I have worked in focus blocks, and Frinter is the tool that grew out of that. I wrote up the project’s story in the Frinter case study on delta240mvt.com.
The landing has to show one idea: your day has three spheres, and every session adds something to them. As text, that sounds like a brochure. A tree that grows under your finger says the same thing in ten seconds. That’s why I kept the animation instead of throwing it out after the first shake.
The look itself came together fast. First version of the landing at 21:59, second at 22:26, third at 22:35. In the second one I decided: dark theme only, no sticky menu, mascots as triangles in the system’s three colors, like the delta240mvt logo. Three versions in 36 minutes. After that, for two evenings, I only worked on how the page behaves under your finger.
The irony was not lost on me for a second. An app that is supposed to protect your focus ate two of my evenings because of a card that moved by 8 pixels.
Evening one: a faster script, and the shaking stayed
First I did what you always do. I measured. On the laptop, in phone view, with the CPU slowed down six times. The tree was redrawn on a canvas on every frame: edges, pulses, small triangles. About 700 draw calls per frame.
First fix: one draw call per sphere and level, about 30 instead of 700. Easing based on time, not on frames. That second part matters, because the iPhone switches its screen between 120 Hz and 60 Hz, and motion counted “per frame” speeds up and slows down. Second fix: instead of a canvas, the tree is built once, as images and a single SVG, and while scrolling only one transform of the whole world changes.
| Measured while scrolling (CPU slowed 6×) | Before | After |
|---|---|---|
| Main thread time, tree scene (first fix) | 3.2 s | 1.5–1.7 s |
| Main thread time, canvas → SVG | 1655 ms | 839 ms |
| Of which scripts | 111 ms | 26 ms |
| Draw calls per frame | about 700 | about 30 |
The numbers looked great. I recorded my iPhone screen and the shaking was still there. The whole pinned scene, title included, jumped by 1–8 device pixels on every frame. That’s when I understood I was measuring the wrong thing. The script was slow, sure. But the shaking didn’t come from a slow script.
Why do scroll animations shake on iPhone?
Because Safari moves the page on one thread and sometimes moves a pinned element on another, and the two movements drift apart. The page glides smoothly under your finger, while a scene pinned with position: sticky gets its position from the main thread, one frame later. You get shaking that no script timing will ever show.
Two more things came up, one after the other. The section’s position, read during momentum scrolling, could flip between an older and a newer value. Tree branches turned on and off frame by frame. What helped was taking progress only from the page’s scroll position, plus hysteresis: a branch switches off only clearly below its threshold, and a shot goes back only 3.5% before its mark.
The other thing was scaling from the script. When the script changed the zoom on every frame, Safari redrew the layer from scratch and snapped it to whole pixels. Captions and branches jumped one pixel back and forth. Now scrolling picks one of six shots, and the compositor does the smooth move between them. The logo stays at 62% of the scene’s height, and the camera only zooms.
Last fix of the first evening: I removed scroll-driven CSS animations from the whole page and pinned the scenes with position: fixed instead of sticky. The tree stopped shaking. It was 23:16.
Evening two: cards that wouldn’t land
On Friday I went back to the four “how a frint works” cards. That same week I was building the landing for Famplace, an app for parents, and there a card stack using plain position: sticky ran smoothly on iPhone. So I moved that approach over to Frinter. It shook.
Then it was ping-pong. Cards pinned by the script stayed still, but on pinning, the first card rode 20–40 pixels past its spot and dropped back. Safari on iPhone reports the scroll late, so a script that switches the pin always does it a few frames too late. Cards on sticky landed perfectly, but shook through the whole section. I also checked how Frinter differed from Famplace: the header wrote its progress bar on every scroll event across the whole page. I fixed that. It wasn’t enough.
What worked was combining both. When the section starts, the scene is on position: sticky, so the browser stops it in exactly the right frame. 96 pixels later, in the same spot, position: fixed takes over and stays still for the rest of the section. When you scroll back up, sticky returns before the scene has to move. At that point I told Claude one thing: the first card should simply land in place. It landed at 22:56.
What the fix loop looked like
Every round was the same. I record my iPhone screen, scroll the section up and down, send the recording to Claude. Claude goes through it frame by frame, measures how many pixels the title moved, and suggests one change. One change is one commit with a note on what and why. Deploy, new recording, start again.
That rhythm saved my second evening. Twice I reverted a change that looked like an obvious fix on the laptop and made things worse on the phone. Without separate commits I wouldn’t have known what I was going back to. The commit note also says what I already checked, so I didn’t test the same thing twice.
Here is the list of things I checked along the way:
- fewer draw calls: faster script, shaking unchanged,
- canvas replaced with images and SVG: half the work, shaking unchanged,
- progress from page scroll plus hysteresis: no more flickering branches,
- six shots instead of scaling from the script: no more jumping captions,
- position: fixed instead of sticky for the tree: no more shaking scene,
- sticky at the start and fixed after 96 pixels for the cards: no more jump.
The first two items improved the numbers. The last four improved what you can see. For me, that’s the main lesson from those two evenings: the measurement and the feel under your finger are two different things, and you have to watch both.
What I take from this
First: the phone is the only test that counts. A slowed-down CPU on the laptop showed me a slow script, and I made it twice as fast. It didn’t show the shaking at all. The iPhone screen recording was the only evidence that mattered, and every next fix started from it. It’s the same rule as with check frames before a Blender render: I check where the viewer actually looks.
Second: split the roles. The script picks the state: which shot, which card is on top. The browser does the movement between states, through transform and a CSS transition, on the compositor. Whenever the script tried to move, scale or pin things on every frame itself, Safari on iPhone was always a step behind your finger. I thought about the weight of 3D models on a page in a similar way in the post on 3D shapes from code on a website: the less work per frame, the calmer it gets.
If you’re building a scroll scene, do one thing today. Record your phone screen and watch the recording frame by frame at the edge of the pinned section. If the title moves, a slow script is not the cause. The felt triangles on this landing have their own story too, and I wrote it up in today’s second post on felt 3D mascots rendered in Blender.
I work with people 1:1 under the delta240mvt brand. On your project, from the first step.
See the offer ↗

