Skip to content

CSS animation generator with preview

Select an effect, adjust the timing and curve, and see how the test element moves. The generated CSS includes the keyframes and a rule to comply with `prefers-reduced-motion`.

It works in your browser. We do not store or send anything you type.Free · No sign-up required

Workspace · CSS Animation Generator

Runs in your browser · 100% local
Incluye una regla para respetar «prefers-reduced-motion».
CSS generado

@keyframes bt-slide { from { opacity: 0; transform: translateY(24px) } to { opacity: 1; transform: translateY(0) } } .elemento { animation: bt-slide 650ms ease-out 0ms 1 both; } @media (prefers-reduced-motion: reduce) { .elemento { animation: none; } }

Vista previa
Deslizar

La animación se ejecuta en un elemento de prueba. Cambia los valores para ajustarla.

Files are processed in your browser; if you are signed in with history enabled, text results appear in your history.
Instructions

How to use it

01

Choose one of the available effects.

02

Adjust the duration, delay, curve and number of repetitions.

03

Click 'Play' to watch it again, and copy the full CSS.

Examples

Examples

Card slot

A 650 ms slide with an ease-out creates a smooth, unobtrusive transition.

Charge indicator

A linear rotation that repeats indefinitely maintains the sense of constant activity.

Reference guide

What you need to know

The animations in this tool use the `transform` and `opacity` properties, which the browser can animate without having to recalculate the layout at every frame. Avoid animating `width`, `height`, `top` or `left` in continuous loops: these are more resource-intensive, particularly on mobile devices.

The @media (prefers-reduced-motion: reduce) rule disables animation when the operating system requests reduced motion. This is an important accessibility measure for people with motion sensitivity, not an optional feature.

Frequently asked questions

Frequently Asked Questions

Check the number of repetitions. If you choose ‘1 time’, it will stop when it’s finished; for a continuous loop, select ‘Infinite’.

Related tools

Other tools that can help with similar tasks.

More at Web development→
CSS animation generator with keyframes · ByTooly