CSS animation generator alternative: presets vs real motion
Preset CSS animation generators and libraries are fast for generic fades and bounces. Captured motion gives a real product's timing and easing, in Figma too.
If you have ever needed an animation quickly, you have probably used one of two things: an online keyframe generator, where you drag a few sliders and copy the @keyframes it writes, or a preset animation library, the Animate.css style of collection where you add a class like "fade in up" and get a ready-made effect.
Both are useful. Both are also built around the same idea: motion as a set of general-purpose presets. That is a good fit for some jobs and a poor fit for others. This post compares that approach with a different one, capturing the real motion from a site that has already shipped it, and is honest about when each one is the better choice.
What preset generators and libraries are good at
Start with what they do well, because it is a lot.
- Speed. You pick an effect, preview it, and copy the code. For a fade or a bounce, that takes less time than describing it.
- Clean, predictable code. Presets are written to be dropped into any project. The output is usually short and easy to read.
- A shared vocabulary. "Use the slide-in-left" is a clear instruction. Named presets make small motion decisions easy to talk about.
- Learning the basics. A visual keyframe generator is a friendly way to see how
transform,opacityand timing functions combine. Students often learn CSS animation this way. - No dependency on a reference. You do not need to find an example somewhere first. You start from nothing and get something reasonable.
If the job is "make this notification appear without a hard cut", a preset is the right tool. Reaching for anything heavier would be overkill.
Where presets run out
The trouble starts when the brief is not "add some motion" but "make it feel like that". A product manager points at a competitor's onboarding. A creative director wants the menu to open the way a particular app's menu opens. You saw a toggle on a shipped site and want your team's toggle to feel exactly as good.
Presets are, by design, generic. They do not know the specific product you are looking at. So you end up doing one of these:
- Pick the nearest preset and accept that it feels a bit off.
- Open a keyframe generator and nudge values by eye until it looks close, replaying the reference again and again to compare.
- Hand the developer a screen recording and a note that says "like this".
All three are guessing. The reference has real numbers behind it, a duration, a delay on the second element, a custom cubic-bezier, a scale that overshoots slightly before settling, and a preset cannot tell you any of them.
There is also a structural limit. Many interactions on real products are not one property on one element. A card expands while its image scales, its text fades in a little later, and a shadow grows. Presets are usually one effect per element. Rebuilding the choreography means stacking several and tuning each by hand.
Capturing motion from shipped sites
The other approach is to start from the reference itself. Capture Motion is a free Chrome extension, from Crafttor, that records an animation while it plays and reads the keyframes, durations, delays and easing of every animated property. It works with CSS transitions and keyframes, the Web Animations API, GSAP and Lottie, which covers most of the ways sites animate.
Instead of choosing a preset that resembles the menu you liked, you capture the menu. What you get back is what the site actually does: which layers move, in what order, for how long, with which curve. For hover effects, the extension sets a real :hover state through the Chrome DevTools Protocol during the capture, so you do not need to hold your mouse still over the element.
From there you can export:
- CSS, React and GSAP code tabs (plus Lottie when the source is Lottie)
- a self-contained HTML + CSS file you can open and share
- JSON, which pastes into the Capture Motion Figma plugin and becomes an editable Figma Motion timeline
- "Copy for LLM", the JSON with a ready instruction for Claude or ChatGPT
Capture and preview need no account, and captures stay in your browser unless you save them. The step-by-step is in how to copy an animation from any website.
A concrete example
Say you want a "save" button that confirms with a small check and a pulse, and you have a reference on a site you like.
With a preset library, you might combine a "pulse" class on the button with a "zoom in" on the check icon. It works in a few minutes. But the reference's pulse is shorter and softer than the preset, the check comes in after a small delay, and the curve has a slight overshoot. Matching those means writing custom keyframes anyway, and you are now guessing at three numbers.
With a capture, you trigger the button once with the extension running. The track list shows the button's scale, the check icon's opacity and transform, the delay between them, and the easing on each. You copy the CSS tab, or paste the JSON into Figma to adjust the design around it. If you want it a bit slower for your brand, you change a duration you can see, rather than a guess you made earlier.
Neither result is wrong. The preset version is a generic confirmation. The captured version is that specific confirmation, which is what the brief asked for. If you want to read the easing values themselves, how to find the easing curve of an animation goes deeper.
Side by side
| Job or criterion | Preset generators and libraries | Capturing motion from shipped sites |
|---|---|---|
| Generic fade, slide or bounce | Very good. Fast and clean. | Works, but more than you need. |
| Matching a specific product's feel | Approximate. You tune by eye. | Good. You get the real timing and easing. |
| Multi-element choreography | Stack presets and tune each by hand. | Records every animated property on every layer. |
| Needs a reference first | No. Start from nothing. | Yes. You capture something that already plays. |
| Code output | CSS (sometimes a class to add). | CSS, React, GSAP, HTML + CSS file, JSON. |
| Working in Figma | Usually no direct path. | JSON pastes into the Figma plugin as a Motion timeline. |
| Learning the basics of CSS animation | Good. Visual sliders teach the building blocks. | Good for studying how real products combine them. |
Why this matters for designers
For a developer, a preset is often enough, because the question is "does it animate". For a designer, the question is usually "does it feel right", and that is harder to answer with a preset.
You design with real numbers, in Figma
A preset lives in code. A capture can land in your Figma file as a timeline, with layers and keyframes in place, so you can redesign around motion you know works. From CSS animation to Figma Motion walks through that step.
Handoff stops being "like this, but..."
When the spec comes from a capture, the developer gets durations and curves, not a description. The numbers in Figma and the numbers in the code are the same numbers.
You build taste faster
Presets teach you what a fade is. Captures teach you why a specific product's fade feels calm and another's feels rushed: a slightly longer duration, an ease-out with a softer tail, a 40ms stagger. Seeing those values across many real products is a quicker way to develop an eye for motion than trying presets one after another.
When to use each
Use a preset generator or library when:
- the motion is utility, not identity: a toast, a loading fade, a modal backdrop
- you have no reference and just need something sensible
- you are prototyping fast and the exact feel does not matter yet
- you are learning how keyframes and timing functions work
Capture the motion when:
- the brief points at a specific product or interaction
- several elements move together and the order matters
- you want to work on the motion in Figma, not only in code
- you need to hand off exact values instead of a recording
Use them together. A practical split: presets for the dozens of small transitions nobody will notice, captured references for the handful of interactions that make the product feel like itself. If you do not have a reference yet, the gallery at capturemotion.dev has ready animated components you can play and customize (colour, text, speed and card options) without an account, and JSON and LLM-prompt copies are free.
Try it now. Install the Capture Motion Chrome extension, capture an interaction you like on any site, and compare it with the nearest preset. Or browse the gallery at capturemotion.dev and paste a card into Figma with the Figma plugin.
Questions
Is a CSS animation generator bad to use?
No. For a generic fade, slide or bounce, a generator or preset library is quick and gives you clean code. It is the wrong tool only when you need the specific feel of a particular product.
What does capturing motion give me that a preset does not?
The keyframes, durations, delays and easing that a shipped site actually uses, for every animated property. Capture Motion records those while the animation plays and exports them as CSS, React, GSAP, HTML or JSON.
Can I use presets and captured motion in the same project?
Yes. Many teams use presets for small utility moments like a toast fading in, and captured references for the interactions that define how the product feels.
Can I get a preset animation into Figma?
Generators and preset libraries output code, so there is usually no direct path into a Figma timeline. A capture's JSON pastes into the Capture Motion Figma plugin, which rebuilds it as an editable Figma Motion timeline.
