CSS Animation Generator
Generate a @keyframes animation and its class in your browser, with duration, easing and a reduced-motion fallback.
What this css animation generator does
The output is a complete pair: the @keyframes block and the class that applies it, plus a prefers-reduced-motion rule that switches the animation off for visitors who ask for less motion. The name is validated because an unsafe name would produce a selector that cannot be applied.
How to use it
CSS Animation Generator: paste the animation name into the box above, set Duration (default "600ms"), Timing function (default "ease-out"), Iteration count (default "1"), From state (default "opacity: 0; transform…") and To state (default "opacity: 1; transform…"), and press Run to get the CSS below.
Worked example
Input:
fade-in
Output:
@keyframes fade-in {
from { opacity: 0; transform: translateY(8px); }
to { opacity: 1; transform: translateY(0); }
}
.fade-in {
animation: fade-in 600ms ease-out 1 both;
}
@media (prefers-reduced-motion: reduce) {
.fade-in { animation: none; }
}
Why it runs in your browser
The conversion happens on this page with JavaScript. Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere. The page reads animation name and returns CSS; reloading the page discards both.
The output is a complete pair: the @keyframes block and the class that applies it, plus a prefers-reduced-motion rule that switches the animation off for visitors who ask for less motion. The name is validated because an unsafe name would produce a selector that cannot be applied.
Generate a @keyframes animation and its class in your browser, with duration, easing and a reduced-motion fallback.
How to use it
CSS Animation Generator: paste the animation name into the box above, set Duration (default "600ms"), Timing function (default "ease-out"), Iteration count (default "1"), From state (default "opacity: 0; transform…") and To state (default "opacity: 1; transform…"), and press Run to get the CSS below.
Why it runs in your browser
The conversion happens on this page with JavaScript. Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere. The page reads animation name and returns CSS; reloading the page discards both.
What to Expect
Best for
- Converting animation name to CSS when the data is already on screen.
What this tool keeps
- Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere.
Sample input
fade-in
Sample output
@keyframes fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } } .fade-in { animation: fade-in 600ms ease-out 1 both; } @media (prefers-reduced-motion: reduce) { .fade-in { animation: none; } }
Frequently asked questions
How do I use the css animation generator?
CSS Animation Generator: paste the animation name into the box above, set Duration (default "600ms"), Timing function (default "ease-out"), Iteration count (default "1"), From state (default "opacity: 0; transform…") and To state (default "opacity: 1; transform…"), and press Run to get the CSS below.
Is my input uploaded?
No. The text is parsed on this page with JavaScript and is never posted to a server.
Is there a size limit?
Yes: 5 MB per run. Larger input is refused with a message rather than freezing the tab.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.