CSS Animations

Experimental: 這是一個實驗中的功能
此功能在某些瀏覽器尚在開發中,請參考兼容表格以得到不同瀏覽器用的前輟。

CSS Animations is a module of CSS that defines how to animate the values of CSS properties over time, using keyframes. The behavior of these keyframe animations can be controlled by specifying their duration, their number of repetitions, and how they repeat.

Reference

CSS Properties

CSS At-rules

Guides

Detecting CSS animation support
Describes a technique for detecting if the browser supports CSS animations.
Using CSS animations
Step-by-step tutorial about how to create animations using CSS, this article describes each relevant CSS property and at-rule and explains how they interact.

Specifications

Specification Status Comment
CSS Animations Level 1 Working Draft Initial definition.

Browser compatibility

BCD tables only load in the browser

See also

  • Related to CSS Animations, CSS Transitions can trigger animations on user actions.