Developer Design Utility

CSS Animation Generator

Adjust CSS animations such as Fade, Slide, Scale, Bounce, Pulse, and more with a live preview, then generate @keyframes and animation code instantly.

Animation Code Generator Create CSS animation code by combining duration, delay, easing, iteration count, and direction.
Live Preview Check the selected animation effect instantly in the preview card.
@keyframes Output Generate class code, keyframes, and prefers-reduced-motion accessibility code together.
Animation Type Fade In
Duration 1s
Easing ease
Iteration 1

Animation Settings

Adjust animation type, speed, repeat behavior, and motion strength to create the UI motion you want.

Select the default @keyframes type to generate.

Used as the CSS @keyframes name and class animation value.

0.2s 1s 5s
0s 0s 3s

Choose the acceleration and deceleration curve of the motion.

Infinite loops are recommended only for loading, highlight badges, or decorative elements.

Choose normal, reverse, alternate, or alternate-reverse playback.

10 40 120
Live Preview
CSS Animation Preview Card

The selected animation is applied here in real time.

Type Fade In
Duration 1s
Iteration 1

Recommended Presets

Common animation combinations for card entrances, button highlights, loading decoration, and notification effects.

Basic Entrance Effects

Highlight / Interaction

Decoration / Loop Animation

Generated Result

Paste the code below into your CSS file and apply the class to the element you want.

Ready
Select settings and click Generate CSS Code.

Help

When should I use a CSS Animation Generator?

Use it when you want to add motion to buttons, cards, modals, alert boxes, or landing page sections. You can preview the motion and copy the @keyframes and animation properties right away.

Main parts of the animation property

  • animation-name: the @keyframes name to run
  • animation-duration: how long one animation cycle takes
  • animation-timing-function: the acceleration curve of the motion
  • animation-delay: the waiting time before the animation starts
  • animation-iteration-count: how many times the animation repeats
  • animation-direction: normal, reverse, or alternating playback

Recommended usage

  • General card entrance effect: 0.5s to 0.9s
  • Button hover highlight effect: 0.2s to 0.4s
  • Modal entrance effect: 0.3s to 0.6s
  • Infinite loops: use only for loading, highlight badges, or decorative elements

Performance tip

For better browser performance, it is usually better to animate transform and opacity instead of width, height, top, or left. This generator mainly creates transform and opacity based keyframes.

Is it okay to use many infinite loop animations?

Infinite animations can continuously draw attention and may affect performance. Use them only when the purpose is clear, such as loading states, highlight badges, or decorative elements.

How can I make a natural entrance animation?

Combining fade and slide is usually the most natural approach. A duration of 0.6s to 0.9s with ease-out or smooth cubic-bezier is recommended.

Why is prefers-reduced-motion necessary?

Some users are sensitive to motion effects. Adding prefers-reduced-motion support can reduce animations according to the user's accessibility settings.