DevToolBox免费
博客

CSS 动画生成器

可视化创建 CSS 关键帧动画,支持实时预览和代码导出。

1s
0s
A
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-30px); }
}

.animated-element {
  animation: bounce 1s ease 0s infinite normal none;
}

免费在线 CSS 动画生成器

使用实时预览可视化创建 CSS 关键帧动画。自定义持续时间、时间函数、延迟等。从预设动画中选择或构建自定义动画。

提示

  • 使用 ease-in-out 获得流畅自然的动画
  • UI 交互动画保持在 300ms 以内
  • 使用 transform 和 opacity 获得最佳性能
  • fill-mode forwards 保持动画结束后的最终状态
  • 使用 animation-delay 错开多个动画

常见问题

什么是 CSS 关键帧动画?
CSS 关键帧动画允许使用 @keyframes 规则在动画序列中定义中间步骤,控制动画时间线不同百分比处的属性。
有哪些时间函数?
包括 ease、linear、ease-in、ease-out、ease-in-out 和阶梯函数。还可以使用 cubic-bezier 自定义曲线。
如何让动画循环?
将迭代次数设为 infinite 可使动画永远循环。
什么是 fill-mode?
fill-mode 决定动画前后如何应用样式。forwards 保持最终状态,backwards 在延迟期间应用初始状态。
免费吗?
完全免费。所有动画生成都在浏览器端完成。

相关工具

𝕏 Twitterin LinkedIn

💬 User Feedback

Have suggestions or found a bug? Leave a message and we'll get back to you.
0/2000

评价此工具

4.8 / 5 · 79 人评价

保持更新

获取每周开发技巧和新工具通知。

无垃圾邮件,随时退订。

Enjoy these free tools?

Buy Me a Coffee

How to Use

  1. Choose an animation type or customize keyframes
  2. Adjust timing, duration, and easing
  3. Preview the animation in real-time
  4. Copy the generated CSS code

Common Use Cases

  • Creating hover effects
  • Building loading animations
  • Adding entrance/exit animations
  • Prototyping UI interactions

Frequently Asked Questions

What animation types are available?
Fade, slide, bounce, rotate, scale, flip, pulse, shake, and custom keyframe animations.
Can I customize the timing?
Yes. Adjust duration, delay, iteration count, direction, fill mode, and timing function (easing).
Will it work in all browsers?
Generated CSS includes vendor prefixes for maximum browser compatibility.