CSS Generators

CSS Animation

All tools

Build a polished entrance animation and copy both the @keyframes block and the rule that runs it.

How it works

Four simple steps

1

Name the animation

Type a keyframes name; unsupported characters are removed.

2

Pick an effect

Choose fade, slide up or scale in as the keyframe type.

3

Set timing

Drag the duration and choose an easing, including a bounce curve.

4

Preview and copy

Replay the effect, then copy @keyframes and the .animate rule.

CSS Animation

About CSS Animation

A modal pops in abruptly and the design review asks for a gentle fade and lift. Writing @keyframes from scratch for something this small feels excessive, and you want to see the timing before you push it. Choose an effect, replay it a few times, and copy the CSS.

There are three keyframe types. Fade goes from opacity 0 to 1. Slide combines that fade with a 24 px upward movement. Scale grows the element from 85 percent to full size while it fades in. Set an animation name (letters, numbers, hyphens and underscores are kept), a duration from 0.1 to 3 seconds and an easing: ease, ease-in, ease-out, ease-in-out, linear, or a bounce curve that overshoots slightly. The output contains the @keyframes block and an .animate rule using the shorthand with fill mode both, so the element starts hidden and stays visible at the end.

Press Preview to replay the animation on the sample box. Entrance effects usually feel right between 0.2 and 0.5 seconds; longer than that and the interface starts to feel slow. Remember users who ask for less motion: wrap the rule in @media (prefers-reduced-motion: no-preference) or shorten it for them. For state changes such as hover, a transition is simpler than keyframes; the CSS transition builder writes that rule, and the cubic-bezier easing tool produces custom timing curves.

The keyframes are injected into this page only to drive the preview.

Keyboard shortcut

Ctrl Enter - Run tool
FAQ

Frequently asked questions

See all FAQs

Answers for this tool. For site-wide help, open the FAQ hub.

Not from the controls. The shorthand is written as name, duration, easing and both. Add a delay after the easing or append infinite to the copied rule if you need them.

It uses cubic-bezier(0.34, 1.56, 0.64, 1). A y value above 1 pushes the animation past its end state briefly before settling, which reads as a small bounce.

Opacity and transform, which are exactly what these presets use. Browsers can usually run them on the compositor without recalculating layout on every frame.

View more FAQs

Related tools

View all

Tailwind Class Sorter

Sort Tailwind classes and detect conflicting utilities with a winner explanation.

Open

Design System Diff Lab

Diff design tokens and inspect CSS @layer order and selector specificity locally.

Open

SVG Path Inspector

Parse SVG path commands, preview on canvas, round and minify coordinates.

Open

Flexbox Generator

Build flex layouts visually.

Open

Explore 321 free tools

Everything you need as a developer, marketer or creator - in one beautiful place.

Browse all tools