CSS animation

CSS Animation Keyframes generator

Select commonly used animations, fine-tune playback parameters, and instantly preview and get complete animation and @keyframes code.

Built-in animation

Play parameters

instant play

ToolHub
animation ready

CSS and Keyframes

CSS Keyframes Animation Design Guide

@keyframes Describes the status of the animation timeline as a percentage,animation Then control playback time, delay, repeat, direction, fill mode and speed curve. Short-term interface feedback usually takes 150-400ms, and the entry of page elements can fall within 400-800ms; if the duration is too long, the operation will appear sluggish.

Prioritize animation transform with opacity, which usually avoids re-formatting and results in smoother performance. Users who are sensitive to motion sickness, please use @media (prefers-reduced-motion: reduce) Turn off unnecessary displacement.

How to use

  1. Choose the type of animation that fits the situation.
  2. Adjust Duration, Delay, Direction, Fill Mode and Timing Function.
  3. Play the confirmation rhythm and copy the resulting classes and keyframes.

Frequently Asked Questions

What is the difference between animation and transition?
Animation can describe multiple frames and automatically loop; transition is suitable for transitioning from the starting point to the end point when the element state changes.
How to set up an infinite loop?
Select Infinite for Iteration Count and the code will output infinite
How to choose Fill Mode?
forwards retains the last frame, backwards applies the first frame during the delay, and both includes both.
How does the pause button work?
The tool uses animation-play-state to switch between paused and running, and the animation will not be rebuilt.
How to reduce the discomfort caused by animation?
Reduces large displacements and rotations, avoids flickering, and provides a static alternative to prefers-reduced-motion.