ToolPal

CSS动画生成器

生成带实时预览的CSS @keyframes动画,可自定义时序、持续时间和缓动效果。

动画设置

实时预览

CSS @keyframes

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

CSS动画类

.animated {
  animation: fadeIn 1s ease 0s 1 normal forwards;
}

使用方法

生成带实时预览的CSS @keyframes动画,可自定义时序、持续时间和缓动效果。

  1. 1Select an animation type from the dropdown (fade, slide, bounce, spin, etc.).
  2. 2Adjust duration, timing function, iterations, delay, and fill mode.
  3. 3Click 'Play Animation' to preview the animation on the live demo box.
  4. 4Copy the @keyframes block and the animation class to use in your project.

主要功能

  • 10 animation presets with predefined keyframes
  • Controls for duration, timing, delay, iterations, and fill mode
  • Live animated preview that replays on demand
  • Outputs both @keyframes and animation shorthand CSS

常见问题

了解更多