CSS Animation Keyframe Generator

Design custom entry, exit, and looping animations visually. Get ready-to-use @keyframes CSS.

1. Animation Presets

2. Animation Name & Settings

3. Keyframes

Stop
X (px)
Y (px)
Scale
Rotate°
Opacity

4. Live Preview

A

5. Generated CSS

How It Works

The generator builds an @keyframes rule from each stop you define, using percentage offsets (0% → 100%). For every stop it composes a CSS transform by chaining translateX, translateY, scale, and rotate in that order — this prevents conflicts between operations. Opacity is written as a separate property. The final class uses the animation shorthand: name duration timing-function delay iteration-count direction. The preview injects this CSS live into the page so you can see the result instantly.

Frequently Asked Questions

How do I add a CSS animation to my website?
Copy the generated @keyframes block and the .class rule into your CSS file, then add the class to the HTML element you want to animate. For example: <div class="my-element myAnim"></div>.
What's the difference between entry, exit, and looping animations?
Entry animations run once when an element appears (0% hidden → 100% visible). Exit animations run once when it disappears (the reverse). Looping animations alternate between two states infinitely using animation-iteration-count: infinite with alternate direction.
Can I animate multiple properties at once?
Yes. Each keyframe stop in this tool supports translateX, translateY, scale, rotate, and opacity simultaneously. They are combined into a single transform property with opacity as a separate declaration, which is the cleanest and most performant approach.

Related Tools

Copied!
Free tools by TUNA — energy supply from vetted manufacturers