Guide
Explore real browser CSS animations with sixteen deterministic presets or a focused custom keyframe editor. Adjust duration, delay, easing, repetitions and direction, then copy the keyframes and animation rules that drive the preview. This CSS Animation Playground processes text and settings locally without sending them to an animation processing service. Reduced-motion preferences disable automatic preview motion until you choose to play it.
1Choose an animation effect
Start with Fade In, Bounce, Slide, Rotate or another preset. Every preset uses opacity or transforms and retains your timing and preview appearance settings.
2Adjust timing and playback
Set a duration from 0.1s to 10s, a delay from 0s to 5s, an easing function and 1–20 iterations or infinite. Choose direction, fill mode and play state. Pause preserves progress and Restart replays the effect.
3Customize the element or keyframes
Edit up to 200 characters of preview text, HEX colors, radius and font size. In Custom mode, add up to twelve percentage stops and set opacity, translate X/Y, scale and rotation. Keep distinct positions with 0% and 100% endpoints.
4Copy CSS and review motion
Copy Keyframes and Animation CSS together, or use Complete CSS for the appearance rules too. Apply the animated-element class in your markup. Exports include a reduced-motion fallback; review readability and motion in your target page.
A CSS animation changes an element's styles over time through a named sequence of keyframes. Animation properties define the duration, easing, delay, repetition and playback direction. This CSS Animation Maker uses actual browser CSS animations rather than a JavaScript loop that changes positions. The default Fade In runs once, while Infinite can turn a suitable effect into a repeating CSS loading animation.
A keyframes rule names a sequence of percentage stops. A 0% stop describes the start and a 100% stop the end; intermediate stops shape the path. This CSS Keyframe Generator provides stable names derived from the effect and keyframe content to reduce accidental conflicts. Custom mode supports two to twelve distinct stops, sorted numerically during export, with explicit start and end stops for a predictable result.
Duration specifies the length of one iteration, not the total length of a repeated animation. Delay postpones the beginning of the active interval once. A 2s animation with three iterations and a 1s delay has a nominal seven-second timeline before pauses. The controls accept 0.1–10 seconds for duration and 0–5 seconds for delay. Changes restart the preview, while Pause and Resume keep the current animation progress.
linear maintains uniform progress. ease, ease-in, ease-out and ease-in-out vary progress along a curve. steps() makes discrete jumps instead of continuous interpolation. Choose 1–100 integer steps and a supported jump position; jump-none requires at least two steps. Timing applies to intervals between keyframes, so adding intermediate stops changes how easing shapes an effect. Compare the same preset at a moderate duration to see these differences.
Choose one to twenty iterations or infinite. normal runs from start to end, reverse runs from end to start, alternate switches direction each iteration and alternate-reverse starts reversed before alternating. A single alternate iteration still has only one pass. Direction also affects which endpoint is active during delay or after completion. Restart creates a fresh preview element so finite and infinite effects begin again reliably.
none applies no animation styles outside the active interval. backwards applies the starting keyframe during a delay, forwards retains the final applicable keyframe after completion and both combines them. The applicable first or last frame depends on direction and iteration parity. For example, Fade Out with forwards can leave the element invisible when finished. Use Restart to replay it or change fill mode to see the base appearance return.
A transition interpolates between style states when a property changes, often after hover, focus or a class change. An animation follows named keyframes and can start on application, repeat or move through several stops. Use transitions for a state change and keyframe animations for a planned sequence such as a CSS bounce animation or entrance effect. This editor generates animation rules only.
Opacity and transforms are often suitable animation properties because they can avoid repeated layout work. Actual compositing and rendering costs depend on the browser, content and surrounding page. Presets and custom frames here animate only opacity and transforms; preview colors, radius and font size are static. Avoid unnecessary continuously running effects and test on representative devices. The editor does not add a heavy animation library or rerender React on each frame.
Use motion to explain a change without making essential content depend on it. The preview detects prefers-reduced-motion and stays static by default when reduction is requested. Enable motion preview is an explicit local opt-in; changing the device preference clears it. Copied Animation CSS and Complete CSS include a media query that removes animation for reduced-motion users, leaving the readable base element. Keep effects brief, avoid flashing, offer pause controls for repeating motion and evaluate the final page with keyboard and assistive technologies.
Custom stops support opacity from 0 to 1, translations from -200px to 200px, scale from 0 to 3 and rotation from -720deg to 720deg. Transform order is translate X, translate Y, scale, then rotate. Percentages range from 0 to 100 and values round to two decimals; duplicate rounded positions pause output. Preset and custom frames are stored independently. Arbitrary CSS declarations, JavaScript, 3D custom transforms and raw stylesheet imports are outside this focused editor.
Copy Keyframes exports only the named keyframes rule. Copy Animation CSS exports the properties for animated-element plus its reduced-motion rule and needs the matching keyframes. Complete CSS includes both, static element appearance and the same accessibility fallback. Preview text is never embedded in CSS. The preview uses a scrollable frame, so large transforms can clip or scroll at its edges. Include your own text and class in the target markup and review the effect in context.
- Comparing a CSS fade animation with a sliding entrance
- Prototyping a bounce or floating effect
- Testing duration, steps easing and alternating loops
- Creating a small custom keyframe sequence for a component
- Preview sixteen CSS animation effects with deterministic keyframes.
- Build custom opacity and transform sequences with bounded numeric controls.
- Pause, resume and reliably restart native browser animations.
- Copy matching keyframes and CSS with a reduced-motion fallback.
What is a CSS animation?
It is a time-based sequence of CSS property values defined in a named keyframes rule and controlled by animation properties on an element.
How do I create a CSS animation?
Choose a preset or custom keyframes, adjust timing, then copy Complete CSS. Add the animated-element class to your element and supply your own content.
What are CSS keyframes?
Keyframes describe styles at percentage points in an animation. This editor supports explicit 0% and 100% endpoints and up to ten intermediate custom stops.
How do I make a bounce animation?
Choose Bounce. Its keyframes move the element vertically through two raised positions and return it to its starting position. Duration, easing and repetitions remain editable.
How do I create a fade-in effect?
Choose Fade In. It animates opacity from 0 to 1. Backwards or both fill mode can keep the element transparent during a configured delay.
How do I change animation speed?
Decrease duration for a faster iteration or increase it for a slower one. The supported duration range is 0.1s to 10s; easing changes the distribution of progress within that time.
How do I loop an animation infinitely?
Select infinite as Iteration count. Consider Pulse, Rotate or Floating, and provide pause controls in your final page. Reduced-motion exports disable the animation when requested.
What is animation-fill-mode?
It determines whether animation keyframes apply before or after the active animation. none, forwards, backwards and both are supported; direction and iteration count affect the retained endpoint.
What is the difference between CSS animation and transition?
A transition interpolates a style change between states. An animation follows a named keyframe sequence and can repeat or include multiple intermediate stops.
Is the CSS Animation Generator free?
Yes. All sixteen presets, custom keyframes, preview controls and CSS copy actions are free without signup.