Skip to content
Test versionSearch

Developer tools

CSS animation generator: two endpoints

Generate CSS keyframes between two endpoints with duration, delay, repetitions, direction, timing, distance, rotation, scale and opacity.

How it worksFAQRelated tools

Content reviewed:

The example values can be changed. Press Calculate to update the result; you can download it as TXT or CSV and collect scenarios in this tab. Nothing is saved or sent automatically.

The animation moves between two states (from and to). For more steps, add further keyframes in your own CSS. The code already contains a rule that stops the animation for visitors who have reduced motion switched on.

Decimal results are approximate. Inputs stay in this browser tab.

How it works

Your entries are checked against the allowed ranges and written as ready-to-paste code: CSS keyframes, CSS Grid, an HTML form with labels, or a table as HTML, CSV, Markdown or LaTeX. The animation moves between two states (from and to). For more steps, add further keyframes in your own CSS. The code already contains a rule that stops the animation for visitors who have reduced motion switched on.

Worked example

Editable example: duration=2, delay=0, repetitions=3, direction=alternate, timing=ease, distance=100, angle=360, scale=1.2, opacity=0.5, exportFormat=css

Frequently asked questions

What does the CSS animation generator create?

It generates a paused, finite animation between two endpoints and lets you test playback with reduced-motion support.

Which settings can I change in the CSS animation generator?

Duration, delay, repetitions, direction, timing, distance, angle, scale and opacity. The example uses 2 seconds, 3 repetitions, alternate direction and ease timing.

Which formats can I export the animation in?

The animation can be downloaded as HTML, CSS, CSV, Markdown or LaTeX.

Can the CSS animation run forever?

No. The generator creates a finite two-endpoint animation with a set number of repetitions.

Can I keep several animation variants?

Yes, up to 30 explicitly added scenarios can be collected in the browser tab. Nothing is saved automatically.