For AI agents: the complete documentation index is available at /next/zh/llms.txt, the full documentation bundle is available at /next/zh/llms-full.txt, and this page is available as Markdown at /next/zh/api/css/properties/animation-play-state.md.
Lynx
  • 简体中文
  • animation-play-state

    介绍

    animation-play-state 属性定义一个动画是否运行或者暂停。 恢复一个已暂停的动画,将从它开始暂停的时候,而不是从动画序列的起点开始在动画。

    使用示例

    语法

    /* Single animation */
    animation-play-state: running;
    animation-play-state: paused;
    
    /* Multiple animations */
    animation-play-state: paused, running, running;

    形式定义

    初始值running
    适用元素all elements
    是否支持继承no
    是否支持动画no

    形式语法

    /*默认值running*/
    animation-name: running | paused;

    扩展阅读

    兼容性

    LCD tables only load in the browser

    除非另有说明,本项目采用知识共享署名 4.0 国际许可协议进行许可,代码示例采用 Apache License 2.0 许可协议进行许可。