CSS Animation & Keyframes Generator
CSS Animation & Keyframes Generator builds @keyframes and animation properties from 15 ready-made effects such as fade, slide, zoom, bounce, pulse, shake, spin, flip, swing and wobble. Set the duration, delay, timing function, iterations, direction and fill mode and watch the result play live.
@keyframes my-animation {
0%, 20%, 50%, 80%, 100% {
transform: translateY(0);
}
40% {
transform: translateY(-30px);
}
60% {
transform: translateY(-15px);
}
}
.element {
animation: my-animation 1s ease 0s infinite normal both;
}How it works
- 1Pick an effect and give the animation a name.
- 2Adjust duration, delay, timing, iterations, direction and fill mode; use "Replay" to watch it again.
- 3Copy the @keyframes and .element rule with "Copy CSS".
Frequently asked questions
What does animation-fill-mode do?−+
forwards keeps the last frame when the animation ends, backwards applies the first frame during the delay and both does both.
Why does the animation name change?−+
To follow CSS identifier rules, characters other than letters, digits, hyphens and underscores become hyphens and the name starts with a letter.
What should I watch for performance-wise?−+
transform and opacity animations are GPU-accelerated; avoid animating properties such as width, height or top.
Embed on your site
<iframe src="https://toolsqube.com/en/color/css-animation-generator/embed" width="480" height="360" style="border:0;border-radius:14px" title="CSS Animation & Keyframes Generator · ToolsQube" loading="lazy"> </iframe>
Want to go deeper on this topic: Color and Design Guide →