Skip to main content

CSS Animation Generator – Keyframes & Animation Code

Build CSS keyframe animations visually. Edit keyframes on a timeline, set duration, easing and repeat, preview live, then copy the CSS or Tailwind code.

CSS Animation Generator

Build keyframe animations visually and copy the code.

Start with a preset

Or shape every keyframe yourself.

Preview

animation: bounce 1s ease-in-out infinite

Keyframes (5)

Select a point to edit it. Arrow keys switch keyframes, Shift + arrows move one, Delete removes it.

Keyframe at 0%

The first and last keyframes stay at 0% and 100%.

0px
0px
0°
100%
100%

Generated code

Copy and paste directly into your project.

CSS
@keyframes bounce {
  0% {
    transform: translateY(0px);
  }
  25% {
    transform: translateY(-40px);
  }
  50% {
    transform: translateY(0px);
  }
  75% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .animated {
    animation: bounce 1s ease-in-out infinite;
  }
}

What is CSS Animation Generator?

Create a CSS @keyframes animation without writing it by hand. Start from a preset such as bounce, pulse, shake or fade in, or build your own on a timeline of up to eight keyframes that move, rotate, scale and fade an element. Set the duration, delay, easing curve, repeat count, direction and fill mode, and watch the result play live. Copy the @keyframes and animation property as CSS, or as a Tailwind v4 theme snippet.

  • css animation
  • keyframes
  • easing
  • transform
  • animation

Features

What you get with CSS Animation Generator.

  • Keyframe Timeline

    Add, move and remove up to eight keyframes and edit each one's move, rotate, scale and opacity.

  • Live Preview

    Play, pause and replay the animation. It is drawn with the exact code you copy.

  • Full Animation Settings

    Duration, delay, easing with a custom curve, repeat, direction and fill mode.

  • CSS and Tailwind

    Copy @keyframes with the animation property, or a Tailwind v4 theme snippet.

How to use CSS Animation Generator

Follow these steps to get the best results.

  1. Start from a preset

    Pick Bounce, Pulse, Shake, Fade in, Slide in, Spin, Wobble or Float, or edit the keyframes yourself.

  2. Shape the motion

    Select a keyframe on the timeline and change how far it moves, rotates, scales or fades. Then set the duration and easing.

  3. Copy the code

    Copy the CSS or Tailwind version and add the animated class to your element.

    Output
    @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .animated { animation: spin 1.5s linear infinite; }

Advertisement

In-feed adResponsive

Frequently asked questions

Common questions about CSS Animation Generator.

Keyframes describe how an element should look at certain points of an animation, given as percentages from 0% (the start) to 100% (the end). The browser fills in the steps between them using the timing function.

Comments

Share feedback, ask questions, or help others use this tool.

Join the discussion

Sign in to comment, reply, and report inappropriate content.

Advertisement

Mobile banner adResponsive