CSS Animation and Keyframe Generator

Edit animation steps in rows and preview fade, slide or spin examples.

On-device No sign-up Free to use

Generate keyframes controls

?

2–20 tab-separated rows, with 0% and 100% endpoints. Each row has six numbers. X/Y: -1000 to 1000; rotation: -3600 to 3600; scale: 0 to 5.

?

1–100 whole repetitions, or infinite.

Processed in your browser. Your inputs stay on this device.

Showing an example. Change the fields, then use generate keyframes to update it.

Result

Showing an example.

Generate a one-second opacity fade with a static visible fallback for reduced motion.

@keyframes uft-custom-motion {
  0% { opacity: 0; transform: translate(0px, 0px) rotate(0deg) scale(1); }
  100% { opacity: 1; transform: translate(0px, 0px) rotate(0deg) scale(1); }
}
.animated-sample {
  animation: uft-custom-motion 1s linear 0s 1 normal both;
}
@media (prefers-reduced-motion: reduce) {
  .animated-sample { animation: none; opacity: 1; transform: translate(0px, 0px) rotate(0deg) scale(1); }
}

Loading the tool. Your result will appear here.

https://usefreetools.net/css-animation-keyframe-generator · 20 November 2026

Was this helpful?

How to use CSS Animation and Keyframe Generator

  1. Edit the Keyframe editor rows or choose Fade, Slide or Spin. Each row gives percent, opacity, X, Y, rotation and scale; include unique 0% and 100% endpoints.
  2. Set duration, delay, repetitions, timing, direction and fill. Select Play preview to inspect the local sample; changing a setting pauses it for review.
  3. Select Generate keyframes and copy or download the CSS. Replace the sample selector with your intended element and test both motion and the generated reduced-motion rule in your page.

Example: CSS Animation and Keyframe Generator

Generate a one-second opacity fade with a static visible fallback for reduced motion.

You add
Keyframes: percent, opacity, X px, Y px, rotation degrees, scale: 0 0 0 0 0 1 100 1 0 0 0 1; Duration (seconds): 1; Delay (seconds): 0; Iterations: 1; Timing function: linear; Direction: normal; Fill mode: both
You get
@keyframes uft-custom-motion { 0% { opacity: 0; transform: translate(0px, 0px) rotate(0deg) scale(1); } 100% { opacity: 1; transform: translate(0px, 0px) rotate(0deg) scale(1); } } .animated-sample { animation: uft-custom-motion 1s linear 0s 1 normal both; } @media (prefers-reduced-motion: reduce) { .animated-sample { animation: none; opacity: 1; transform: translate(0px, 0px) rotate(0deg) scale(1); } }

Options

Keyframe rows
Use 2 to 20 unique percentages including 0 and 100. Every row contains six tab-separated numbers: percent, opacity from 0 to 1, X and Y from -1000 to 1000 pixels, rotation from -3600 to 3600 degrees and scale from 0 to 5.
Duration and delay
Duration accepts 0.1 to 60 seconds and delay accepts -60 to 60 seconds. A negative delay begins partway through the animation timeline.
Playback
Choose 1 to 100 whole repetitions or infinite, a listed timing function, direction and fill mode. Preview controls affect the sample on this page; they do not animate another site.
Reduced motion
When reduced motion is requested, the preview shows the 100% keyframe without animating. The exported rule does the same, even if you selected a reverse direction. Review that static state for your actual content.

Supported inputs and limits

  • Up to 20 constrained steps.
  • Only the documented transform and opacity values are accepted, rather than arbitrary CSS.
  • The preview animates one local sample and does not alter your site.
  • Exported motion includes a reduced-motion alternative; test its interaction with your own styles.
  • Native rows preserve the supported transform and opacity grammar.
More details

Fade, slide and spin buttons fill editable steps; arbitrary animation CSS is refused.

Where your input is processed

This tool does not upload your inputs. See the limits for anything saved on your device.

Review movement in its surrounding layout

A short preview can hide how motion interacts with real text, navigation or scrolling. Check the copied animation on the target element and preserve the reduced-motion alternative. Large transforms may move content outside its container; successful generation does not establish that the resulting motion is comfortable for every visitor.

Questions about CSS Animation and Keyframe Generator

Can I paste an arbitrary CSS declaration?

No. Use the supported property controls so the generator can validate every value.

Does the preview start animation in my website?

No. It runs only on the local sample. Integrate the exported CSS separately.

What happens when reduced motion is requested?

Retain the generated static alternative and test it with your page’s actual content.

Page updated · Project managed by Tony Hines · Report a problem with CSS Animation and Keyframe Generator