Until recently, every exercise in FLEX came with a short video clip and a poster image. That was 1,347 MP4 files, 59 MB of them, plus another 9 MB of posters.
They did the job, but they had limits I kept running into. Each clip had one camera angle, so you couldn’t see a lift from the side. They all played at one speed. They had their own backgrounds, which never quite matched the app’s light and dark themes. And every new exercise meant making another clip.
One figure, every movement
Now every one of the 1,279 built-in exercises is shown by the same clay figure, drawn live in WebGL on your phone. Open an exercise and the figure plays the movement. Drag it to see it from any side, and double-tap to face it again.
The figure has a transparent background, so it sits on whatever theme you use. And because it’s drawn rather than filmed, every exercise looks like it belongs to the same app.
Each move at its own pace
A video plays at one speed. The figure doesn’t have to. Slow lifts, fast jumps and steady holds each play at their own tempo, so a plank holds still, a jump is quick and a squat takes its time. That turned out to matter more than I expected: it’s much easier to read a movement when it moves the way you’ll actually do it.
Keeping it light
The engine that draws the figure is about 292 KB gzipped. It loads the first time a figure plays, not when the app starts.
A list of exercises can’t run hundreds of 3D scenes, so each exercise also has a small pre-rendered still. It’s framed on the exercise’s whole rep, exactly like the live figure, so when you open an exercise the live figure fades in over the still without a jump.
- Every figure on screen shares one WebGL context and one animation loop.
- At most three play at once, and they stop when the app is in the background.
- If frames start running long, the loop drops to a steady 30 fps.
- With reduced motion turned on, the figure holds its pose. Without WebGL2, the still stays.
What it changed
The app is smaller, every exercise looks consistent, and adding an exercise now means adding movement data instead of making a video. The next note is about the tool that movement data comes from.