CSS Animation Generator
Build keyframe animations visually and copy the CSS code
Ad
Ctrl+Enter
Ad
Frequently Asked Questions
What are CSS keyframe animations? +
CSS keyframe animations let you define a sequence of styles that an element transitions through over time. Using @keyframes, you specify what styles the element should have at various points (like 0%, 50%, 100%) during the animation cycle. The browser smoothly interpolates between these keyframes.
What is the difference between CSS transitions and animations? +
CSS transitions animate a property change from one state to another (e.g., on hover), requiring a trigger. CSS animations using @keyframes can run automatically, loop infinitely, have multiple intermediate steps, and don't need a trigger event. Animations offer more control over complex multi-step motion.
What timing functions are available for CSS animations? +
CSS provides several built-in timing functions: ease (default, slow start and end), linear (constant speed), ease-in (slow start), ease-out (slow end), ease-in-out (slow start and end), and step-start/step-end for discrete jumps. You can also define custom curves using cubic-bezier().
How do I make a CSS animation loop forever? +
Set the animation-iteration-count property to 'infinite'. For example: animation: myAnimation 2s ease infinite; This will make the animation repeat continuously without stopping. You can also set a specific number like 3 to repeat exactly three times.
What is animation-direction in CSS? +
The animation-direction property controls how the animation plays through its keyframes. 'normal' plays forward each cycle, 'reverse' plays backward, 'alternate' plays forward then backward on alternating cycles, and 'alternate-reverse' starts backward then alternates. Alternate is great for smooth back-and-forth effects.
Ad