Skip to content
Jellykit

CSS Keyframes Generator

Build a CSS @keyframes animation on a timeline of movement, scale, rotation, opacity and color, then copy the finished code.

  • Runs on your device
Loading tool

About CSS Keyframes Generator

Design a CSS animation by placing keyframes on a timeline and setting what the element looks like at each one: where it sits, how large it is, how far it is turned, how visible it is and what color it has. Set the duration, easing, delay, repeat count, direction and fill mode, and a box plays the result as you edit.

The output is a complete @keyframes block plus a class with the animation shorthand, ready to paste into a stylesheet. Everything you set is kept in the page address, so a link reopens the same animation.

How it works

  1. Each keyframe holds a position on the timeline from 0% to 100% and the values the element has there. Add a keyframe and it lands in the widest gap, with values halfway between its neighbours.
  2. Every keyframe lists the same transform functions in the same order, so the browser moves each of them smoothly instead of falling back to matrix interpolation, which can lose rotations past half a turn.
  3. The preview uses the browser’s animation engine with the easing applied between each pair of keyframes, the way CSS applies animation-timing-function.
  4. If your device asks for reduced motion, the preview waits for you to press Play.

Questions

Which properties can I animate?

Position (translate), rotation, scale, opacity and background color. Turn each group on or off; a group that is off is left out of every keyframe.

How many keyframes can I add?

Up to 12, at whole percentages. Two keyframes cannot share a position, so moving one onto another places it on the nearest free percentage.

Can I use my own easing curve?

Yes. Choose Custom and type a cubic-bezier() with x values from 0 to 1. The cubic bezier editor on this site helps you shape one by dragging.

Does the animation need JavaScript on my site?

No. The copied code is plain CSS. The tool uses the browser’s animation API only to play the preview here.

Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.