Case study · A Claude skill

17 MB of motion, delivered in 200 KB

Sequence to Shader is a Claude skill I built that turns animated gradients into live, lightweight web backgrounds. Here it is on five heroes: they load instantly, stay crisp on every screen, and keep their look frame for frame.

This hero is live · move your pointer

The problem

Animated gradients are everywhere on the web, and almost all of them ship as video. Video is heavy.

Each one was a 3–3.5 MB file for a 5–6 second loop. On a slow phone connection that's 15–20 seconds of loading before the hero even shows up, which is longer than most people will wait. And if we ever wanted to change a color, say for a campaign or a dark mode, it meant going back into After Effects, exporting again and re-uploading.

File size~40 KBinstead of about 3.5 MB as a video
Load time on a slow phone0.3 sinstead of 15–20 seconds
LookSameas the original, under 2% different, checked frame by frame

The solution: a skill, not a one-off

Instead of hand-rebuilding every animation, I built a Claude skill that does it.

Hand it the rendered frames and it looks at each animation, picks the right way to rebuild it, turns it into a small live component, and checks the result against the original frame by frame. It works on any rendered gradient, from any tool, and it's open source.

View the source on GitHub →

Who it's for

One change, four groups who get something different out of it.

Visitors: it's just there

The hero arrives with the page instead of buffering after it, on any connection. The live heroes are drawn at the screen's own resolution, so they're as sharp on a large monitor as on a phone, and they respond to the cursor, which makes the page feel alive rather than played back.

Brand and marketing: colors become tokens

On the live heroes, palettes are settings, not footage. A campaign color, a dark theme or a regional variant is a config change that ships the same day. Because color is applied as the final step, exactly as it is in the original animation, a new palette looks the way the motion designer would have made it, not like a tint on top.

Designers: nothing lost in translation

Motion design stays in After Effects. Every hero was compared with the original frame by frame until the two were effectively identical, so what gets approved in the design file is what ships, with no "close enough" web version.

Engineers: a component, not an asset

Each hero is a dependency-free component with one config object. It pauses itself when it's off-screen, honors reduced-motion settings, falls back to a still image on older browsers, and the live ones expose hooks for new interactions, with no video pipeline to maintain.

The five heroes

Every tile below is running live, not playing a video.

Key decisions

Computed live, not played back

The heroes with sharp, sweeping folds are recreated from a single 16 KB image and the motion rules behind it, calculated every frame. That's why they never show a loop point and can be retimed, recolored or made interactive after launch, which no video can do.

The right technique per hero

Soft, drifting gradients compress beautifully into a few blended layers. Sharp moving folds don't, so those are computed live instead. Choosing per hero kept every one under 60 KB without trading away fidelity.

Calmer than the original

A hero sits behind headlines and calls to action. I slowed every animation, some to a fraction of the original speed, so the motion sets a mood without competing for attention. Slowing a video that much would mean many times more frames and file size; here it's a single setting.

Considerate by default

The animation rests whenever it's off-screen or the tab is hidden and stands still for visitors who ask their device for reduced motion. The live heroes also fade as you scroll past. Less battery, less distraction, more inclusive.

The outcome

Same animations, a fraction of the weight.

HeroAs videoRebuiltSmaller bySlow mobile: videoSlow mobile: rebuilt
Wave Star2.98 MB27.1 KB112×15.6 s0.14 s
Liquid Star3.53 MB51.1 KB71×18.5 s0.26 s
Pill Flower3.49 MB22.1 KB161×18.3 s0.11 s
Moon3.51 MB57.7 KB62×18.4 s0.30 s
Sphere3.54 MB41.6 KB87×18.5 s0.21 s
All five17.1 MB200 KB87×89 s1.0 s

Video sizes use After Effects' standard web export. Load times assume a slow mobile connection.

What I learned

Small files were never the hard part. Fidelity was. A lighter hero that looks slightly off doesn't get shipped; matching the original frame for frame is what turned an almost 90× saving into something a brand team will sign off on.

Where this goes

When a hero costs kilobytes instead of megabytes, motion stops being a special-occasion asset reserved for the homepage. And because it's a skill, any team can do this with their own animations.

Motion on every page

Product pages, campaign landers and launch announcements can all carry a living hero, with no performance budget spent and no compromise on load time.

A motion language, not one-offs

Palettes, pacing and moods become part of the design system. Every new hero starts from proven building blocks and stays unmistakably on-brand.

Heroes that respond

Because each frame is drawn live, a hero can react to the visitor: the way they scroll, where their cursor rests, the story the page is telling.

One brand, many moments

Seasonal campaigns, dark themes and regional variants become a change of settings, so the brand can move as fast as the business does.