Developer Tools
CSS Animation Generator (Keyframes)
Create CSS keyframe animations visually — fade, slide, bounce, pulse, shake, spin and more — tune duration, easing, delay and repeat with a live preview, then copy the CSS.
How to use
- 1Pick a preset animation.
- 2Adjust duration, delay, easing, repeat and direction — or edit the keyframes directly.
- 3Copy the CSS and add the class to your element.
Frequently asked questions
Does the CSS respect reduced motion?
Yes — the output includes a prefers-reduced-motion rule that turns the animation off for people who've asked for less motion.
Can I animate on scroll or hover?
Use the class in a :hover rule, or add it with JavaScript/IntersectionObserver when the element scrolls into view.
Which properties animate smoothly?
transform and opacity are GPU-friendly; avoid animating width, height or top/left for smooth performance.
A keyframe generator that defends against itself
Every export automatically wraps your animation in a @media (prefers-reduced-motion: reduce) block that sets animation: none, so the CSS you copy is accessible by default rather than something you have to remember to bolt on afterward — a step that's easy to skip when writing animations by hand.
Worked example: the default fade-in-up, in full
Opening the tool with its default preset — fade-in-up, 0.8s duration, ease-out timing, no delay, 1 repeat, normal direction, both fill mode — produces: @keyframes fade-in-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } } .fade-in-up { animation: fade-in-up 0.8s ease-out 0s 1 normal both; } plus the reduced-motion override. The keyframes textarea stays fully editable, so you can start from a preset and hand-tune the actual percentages and properties without losing the generated shorthand around it.
Why some presets jump straight to "infinite"
Choosing spin, pulse, float, heartbeat or color-cycle automatically sets Repeat to infinite and switches the easing (linear for spin, ease-in-out for the rest) — a single pass of a spin or pulse reads as a glitch, not an animation, so the tool defaults these particular presets to loop continuously while leaving one-shot presets like fade-in or slide-in-left at a single repeat.
Stick to transform and opacity for smoothness
Every built-in preset only ever animates transform (translate/scale/rotate) and opacity, which the browser can run on the compositor thread without re-running layout on every frame. The keyframes box is editable enough to animate width, top or background-color instead, but doing so forces a layout or paint recalculation each frame — fine for a one-off color-cycle background, but worth avoiding for anything that runs continuously or on multiple elements at once.
What fill mode actually controls, and why the default is 'both'
Fill mode decides what an element looks like outside the time the animation is actively running, and it trips people up because its effects are invisible until a delay or a non-repeating animation is involved. forwards keeps the animation's final keyframe applied after it finishes, instead of the element snapping back to its original, pre-animation CSS the instant the animation ends. backwards applies the first keyframe's styles immediately during any delay, instead of showing the element's un-animated state while it waits to start. both does both at once, which is why it's the tool's default: it's the setting that behaves the way most people intuitively expect an animation to behave, with no visible snap at either the start or the end. Leaving fill mode at none on a fade-in with a delay would mean the element is fully visible during the delay and only disappears right as the fade-in keyframes kick in — a jarring flash that's a common source of 'why does my animation flicker' bug reports.
Related tools
- Code Beautifier (HTML, CSS, JavaScript)
Beautify messy or minified HTML, CSS and JavaScript into clean, consistently indented code you can read and edit.
- CSS & HTML Minifier
Minify CSS or HTML to shrink file size — strips comments and whitespace and shows how many bytes you saved.
- CSS to Tailwind Converter
Convert plain CSS declarations or rules into Tailwind CSS utility classes — spacing, flexbox, grid, typography, colors, borders and more, with arbitrary values where needed.
- CSS Box Shadow, Border Radius & Glassmorphism Generator
Design CSS box shadows, rounded corners and frosted-glass (glassmorphism) effects with sliders and a live preview — then copy the CSS.
- CSS Clip-Path Generator
Create CSS clip-path shapes visually — triangles, hexagons, stars, arrows, speech bubbles and more — drag points to customize and copy the polygon() CSS.
- CSS Gradient Generator
Build linear, radial and conic CSS gradients visually — add color stops, set the angle and copy the CSS (or Tailwind class) with a live preview.