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`.
Workspace · CSS Animation Generator
@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; } }
La animación se ejecuta en un elemento de prueba. Cambia los valores para ajustarla.
How to use it
Choose one of the available effects.
Adjust the duration, delay, curve and number of repetitions.
Click 'Play' to watch it again, and copy the full CSS.
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.
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
Related tools
Other tools that can help with similar tasks.
Border-radius generator
Adjust the four corners individually and copy the CSS whilst viewing the preview.
CSS Shadow Generator
Creates soft box shadows and copies the box-shadow property.
CSS Gradient Generator
Design linear or radial gradients and copy the CSS.
