Advanced Keyframe Builder · 280+ Presets · Multi-Framework Export
Free CSS Animation Generator: 280 Presets, Video Recording, and 9-Format Code Export
Build CSS keyframe animations visually with 280 categorized presets covering loading spinners, glow effects, elastic motion, text animations, border effects, and cinematic techniques. Export to CSS, Tailwind, React, GSAP, Framer Motion, Vue, SCSS, Styled Components, or a standalone HTML file. Record your animation directly as a WebM video. Free, no signup required.
The Timing Function Is the Animation's Personality
This tool generates CSS keyframe animations through a visual builder: per-keyframe property sliders, a named preset library, per-keyframe easing, stagger controls, a live FPS counter, nine export formats, shareable URL state, and a WebM recorder. This document covers the judgment behind the mechanics: timing functions, compositor-cheap properties, fill behavior outside the active period, competing animations, will-change budgeting, reduced-motion handling, and the recording pipeline.
Two animations can share identical keyframes and feel like different effects. The difference is the timing function: a cubic-bezier() curve of four numbers, where the middle two are control points shaping acceleration. Keyframes say where the element goes. The timing function says how it travels.
A curve like cubic-bezier(0.34, 1.56, 0.64, 1) overshoots its target and settles back, which reads as springy, because a control point above 1.0 lets the value exceed its final state. A curve like cubic-bezier(0.55, 0.06, 0.68, 0.19) starts slow and accelerates hard, which reads as heavy. The builder ships named curves: Back Out (cubic-bezier(0.68, -0.55, 0.265, 1.55)), Elastic (cubic-bezier(0.175, 0.885, 0.32, 1.275)), Back In (cubic-bezier(0.6, -0.28, 0.735, 0.045)), and Smooth (cubic-bezier(0.25, 0.46, 0.45, 0.94)). Changing the easing is the fastest way to change an animation's character without touching a keyframe.
Per-keyframe easing assigns a different timing function to each segment between markers: a bounce that eases in on the way down, hits an elastic overshoot at the bottom, and settles with ease-out at the top. One global easing cannot produce that shape. When a preset like Bounce Ball looks right, the per-segment easing is doing the work, not the keyframe positions.
Keyframes That Never Touch the Main Thread
Animated properties do not cost the same. transform and opacity run on the GPU compositor thread: the browser rasterizes the element once, and the compositor moves, scales, or fades the texture each frame without the main thread, repainting, or layout recalculation. These hold 60 frames per second on mid-range mobile hardware almost regardless of what else the page is doing.
Everything else costs more. background-color, box-shadow, and filter force a repaint every frame. width, height, top, left, margin, and padding force full layout recalculation every frame, the most expensive rendering operation. This is why the Border Glow presets, which animate box-shadow, carry a real cost: one glowing button is invisible to the frame budget, but the same animation on dozens of list items drops frames on phones.
The FPS counter in the tool header makes the tradeoff concrete: it reports the browser's actual achieved frame rate for your animation on your device, updated every second, not an estimate. If a box-shadow animation drops below 60, place a blurred duplicate layer behind the element and animate that layer's opacity instead. Nearly identical visually, and opacity is compositor-cheap.
What Holds Before the First Frame and After the Last
animation-fill-mode controls which styles apply outside the active period. forwards keeps the final keyframe's styles after the animation finishes; without it, an element fading from opacity: 0 to opacity: 1 snaps back to invisible the moment the animation completes. backwards applies the first keyframe's styles during the animation-delay period; without it, a delayed element renders in its natural state, then jumps to the first keyframe when the animation starts.
none, the CSS default, applies neither. both applies the backwards behavior during the delay and the forwards behavior after the end, which is why the builder defaults to both. The backwards half matters most with stagger: later items in a staggered reveal have long delays, and without backwards fill they sit fully visible during their delay, then vanish and animate in.
When Two Animations Claim the Same Property
An element can carry multiple animations, and when two animate the same property, CSS resolves it strictly: under the default animation-composition: replace, the animation listed last in the animation-name list wins each contested property outright. The loser's values are discarded, not blended. If an entrance animates transform and the element also has a looping float on transform, only the last-listed one has any effect on the transform.
animation-composition offers two alternatives: add sums the animation's effect with the underlying value, and accumulate blends the underlying value into the interpolation. Both suit layered motion, like a drift plus an entrance, but they are recent additions, so check target browsers first. The practical rule: avoid stacking two animations that both write transform on one element. Animate different properties, or nest the element and put one animation on the parent and the other on the child.
will-change Is a Budget, Not a Turbo Button
will-change tells the browser to prepare a compositor layer before the animation starts, so the first frame does not pay the promotion cost. Used sparingly it removes a real stutter: the first paint of an animated element can hitch while the browser promotes it mid-animation.
Used broadly it backfires. Every promoted element becomes its own GPU texture, consuming video memory proportional to its size, and browsers start ignoring the hint once layer counts get unreasonable. will-change also creates a new stacking context and containing block, which can alter positioned descendants and z-index in ways that look like unrelated bugs. The correct pattern is temporal: add will-change just before the animation, remove it on animationend. Infinite ambient animations are the exception, since they never end.
Designing the Reduced-Motion Path
For users with vestibular disorders, parallax, spinning, and large-scale motion can cause nausea. The prefers-reduced-motion media query lets the operating system's accessibility setting reach your CSS. Write the full-motion animation as usual, then add an override: replace a slide-and-fade entrance with an opacity-only crossfade, or cut an ambient loop to a static end state. animation: none suits purely decorative motion.
One detail matters: if JavaScript listens for animationend, animation: none means that event never fires and the chain stalls. The workaround collapses the animation instead: animation-duration: 0.01ms with animation-iteration-count: 1 completes it almost instantly, so end-state styles apply and animationend still fires. The builder exports the full-motion version; the reduced-motion override is a small block you add by hand.
From Preview to a File: Recording and Export
The recorder bridges the gap between building an animation and communicating it: a video file works for recipients who will never open a development tool. Clicking Record captures the live preview at 800 by 600 pixels and downloads a .webm file named after the animation when you stop.
The pipeline uses two web APIs and no server. HTMLCanvasElement.captureStream(30) turns the preview canvas into a real-time media stream at 30 frames per second, and a MediaRecorder with the video/webm MIME type encodes it into a WebM container entirely in the browser. Capture follows the preview in real time, so it respects the playback speed setting: slow the preview down and the recording captures the slowed motion. The file plays in modern browsers and drops into docs, chat threads, and tickets without conversion.
For code, the same animation exports to nine formats: pure CSS, a Tailwind config extension, a self-contained React component, an SCSS mixin, a styled-components template, a Framer Motion variants object, a Vue single-file component, a GSAP timeline, and a standalone HTML file. The configuration also encodes into the URL hash as a base64 state object, so copying the address bar shares the exact animation, and the JSON export round-trips the full definition through version control. See also the CSS Animation Cheatsheet, the CSS Transforms Cheatsheet, the Spinner Ring gallery element, and the in-depth CSS Animation Guide.
Frequently Asked Questions
Animate With Compositor-First Engineering
Stop switching between tools to convert your CSS animations between frameworks. This CSS animation generator handles 280 presets, nine export formats, and video recording in a single interface.
Free to use. No signup. No limits. Open the generator, choose a preset or build from scratch, and export production-ready code in seconds.
In-depth guide
CSS Animation Guide: Keyframes, Transitions & Easing
Master @keyframes, timing functions, transitions vs animations, and performance with copy-paste examples.
Keep exploring
- CSS Animation Cheatsheet
The animation shorthand with a live easing visualizer.
- CSS Transforms Cheatsheet
Interactive builder for rotate, scale, skew and translate.
- Spinner Ring
Classic CSS-only loading spinner.