Pinatool

CSS Animation Generator

Design multi-step keyframe animations visually on a timeline. Edit transforms and opacity at any percentage stop, tune easing and timing controls, preview the motion in real time, and copy production-ready CSS with an accessible reduced-motion fallback.

Quick Animation Presets

Click any preset to load keyframes and timing

Live Stage Preview

Interactive real-time preview of keyframes and timing

Pinatool ✨

Keyframe Timeline

Select a stop to edit its transform values or add intermediate stops

4 stops
0% (start)50%100% (end)
Add stop at %:

Stop Properties (35%)

Intermediate
0px
-48px
0deg
1.05
100%

Timing & Playback Settings

Generated Production Code

Includes pure CSS @keyframes, shorthand rule, and accessible reduced-motion fallback.

@keyframes pinatool-animation {
  0% {
    transform: translate(0px, 0px) rotate(0deg) scale(1);
    opacity: 1;
  }
  35% {
    transform: translate(0px, -48px) rotate(0deg) scale(1.05);
    opacity: 1;
  }
  65% {
    transform: translate(0px, 6px) rotate(0deg) scale(0.98);
    opacity: 1;
  }
  100% {
    transform: translate(0px, 0px) rotate(0deg) scale(1);
    opacity: 1;
  }
}

.animated-element {
  animation: pinatool-animation 1.4s ease-in-out 0s infinite normal both;
}

@media (prefers-reduced-motion: reduce) {
  .animated-element {
    animation: none;
  }
}

How It Works

1

Pick a Preset or Place Stops

Start from popular presets like Bounce, Fade Up, or Heartbeat, or click the timeline to place custom percentage stops between 0% and 100%.

2

Fine-Tune Transforms & Timing

Adjust translation, rotation, scale, and opacity for each stop. Then customize duration, delay, cubic-bezier easing, direction, and iteration counts.

3

Copy Production CSS

Copy clean @keyframes rules, shorthand classes, and reduced-motion media queries, or download a standalone .css file directly.

CSS Animation Generator Key Features

Visual Multi-Stop Timeline

Add, inspect, and tweak intermediate keyframe stops at exact percentage points for intricate multi-stage choreography.

Granular Timing Controls

Precision control over duration, delay, standard and cubic-bezier easing, iteration count, direction, and fill modes.

Accessible Reduced-Motion

Includes an automatic prefers-reduced-motion media query fallback ensuring your web applications remain inclusive and accessible.

Frequently Asked Questions

How does the visual keyframe timeline work?

The timeline spans from 0% (start) to 100% (end). You can click any percentage pin to select it, or add new intermediate stops (such as 35% or 75%). Each stop holds individual translate, rotate, scale, and opacity values that smoothly interpolate between keyframes.

What is the difference between animation delay and duration?

Duration defines how many seconds a single complete cycle takes from 0% to 100%. Delay specifies a waiting time before the very first playback begins when the element loads into view.

What does CSS animation-fill-mode do?

Fill mode determines which keyframe styles apply outside active playback. "forwards" retains the styling of the final keyframe (100%) after the animation completes, "backwards" applies the 0% keyframe during any delay period, and "both" applies both behaviors.

Why does the generated CSS include a prefers-reduced-motion media query?

Operating systems allow users with vestibular sensitivities or motion discomfort to request reduced motion. The included @media (prefers-reduced-motion: reduce) rule cleanly disables decorative motion without breaking layout or content.

Can I combine multiple transforms like translation, rotation, and scale?

Yes. Modern CSS combines transform functions in a single transform declaration. This tool outputs translate(X, Y), rotate(deg), and scale(...) in an optimized transform string per keyframe to avoid CSS property collisions.