Make a CSS animation and copy the code
Pick an effect or paste your own @keyframes, watch it play, tune it, and copy CSS that respects reduced motion.
- Free, no sign-up
- Runs in your browser
- CSS, Tailwind, JavaScript
Paste a whole stylesheet to list every animation in it, or drop a .css file here or .
No CSS handy? Try one:
How it works
- Pick or paste. Start from an effect, or paste an
@keyframesblock, ananimation:line, a Tailwind class such asanimate-spin, or a whole stylesheet. Timing in the animation line is picked up too. - Watch and tune it. It plays on a card, button, field, spinner, heading or dot. Change what it is for, the duration and the easing, or open more options for delay, repeats, direction, fill mode and name. Everything updates as you change it.
- Check it. The page checks the rules from the skill: animate only transform and opacity, use the usual duration and easing for what it is for, play entrances once, keep the end state with the right fill mode, never flash more than 3 times a second, and turn it off for people who ask for reduced motion.
- Copy it. As CSS with a
prefers-reduced-motionrule, a single animation line, Tailwind v4 or v3, or Web Animations JavaScript, or download a CSS file.
Questions
- Which properties should a CSS animation change?
- Transform and opacity. The GPU handles them without redoing layout or paint. Animating left, top, width, height, margin or padding makes the browser redo layout every frame, which stutters on slower phones.
- How long should an animation be?
- Small feedback 100 to 200 ms, hover 150 to 250 ms, something appearing 200 to 300 ms, something leaving 150 to 200 ms, page changes 300 to 500 ms, attention grabs 500 to 1000 ms and loading loops 1 to 2 seconds.
- What does fill-mode both do?
- It applies the first keyframe during a delay and keeps the last keyframe after the animation ends, so the element does not show early and does not jump back to its own style when the animation finishes.
- Is anything uploaded?
- No. Reading your CSS, the preview, the check and the code are all done in your browser. Only the optional AI rewrite sends the animation CSS, your choices and your description, and only when you press its button.
- Why does the CSS turn the animation off for some people?
- People who set "reduce motion" in their system settings can feel sick from motion on screen. The copied CSS adds a
prefers-reduced-motionrule that setsanimation: nonefor them.