Category: Developer tools
CSS keyframes generator
Pick an animation preset and copy ready CSS
Pick a fade, slide, bounce, pulse or spin preset, tune timing controls, and copy @keyframes plus the animation shorthand locally.
@keyframes localtools-preview {
from {
transform: translateY(0);
}
40% {
transform: translateY(-24px);
}
60% {
transform: translateY(0);
}
80% {
transform: translateY(-12px);
}
to {
transform: translateY(0);
}
}
.element {
animation: localtools-preview 1.2s ease-in-out infinite normal;
}The preview restarts whenever you change the preset, using the exact CSS shown below.
Everything on this page is processed in your browser. Nothing is uploaded.
What this tool does
This CSS keyframes generator helps with common UI motion without hand-writing every percentage stop. Choose a fade, slide, bounce, pulse or spin preset, then set duration, timing function, iteration count and direction. The page previews the same keyframes it prints, and you can copy both the @keyframes block and the animation shorthand. It does not include a draggable timeline, custom keyframe editor, JavaScript or WAAPI output, file export, design-tool integration or automatic motion-policy generation. Your settings and generated CSS stay in the browser.
How to use it
- Choose a fade, slide, bounce, pulse or spin preset.
- Set duration, timing function, iteration count and direction.
- Preview the motion, then copy the @keyframes block and animation shorthand.
Privacy
This tool runs entirely in your browser. Your input is never uploaded, stored or shared — closing the tab removes it.
Frequently asked questions
- How do I generate CSS @keyframes animation code?
- Choose a fade, slide, bounce, pulse or spin preset, set the duration, timing function, iteration count and direction, then preview the motion and copy the @keyframes block plus the animation shorthand.
- How do duration, timing function, iteration count and direction affect the animation shorthand?
- Duration controls how long the animation runs, the timing function controls its pacing, iteration count controls repeats, and direction sets normal, reverse or alternating playback in the generated shorthand.
- Does this CSS keyframes generator upload my code or settings?
- No. The input, settings and result are handled locally in your browser and are not uploaded to LocalTools.
- Does this CSS keyframes generator upload my input or result?
- No. The input, settings and result are handled locally in your browser and are not uploaded to LocalTools.
- What animation or export features does this CSS keyframes generator not support?
- It does not include a draggable timeline, freeform keyframe editor, JavaScript or WAAPI output, file export, design-tool integration or automatic prefers-reduced-motion CSS rules.