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-name.md.
Lynx
  • 简体中文
  • animation-name

    介绍

    animation-name 属性指定应用的一系列动画,每个名称代表一个由@keyframes 定义的动画序列。

    使用示例

    语法

    /* Single animation */
    animation-name: none;
    animation-name: test_05;
    animation-name: -specific;
    animation-name: sliding-vertically;
    
    /* Multiple animations */
    animation-name: test1, animation4;
    animation-name:
      none,
      -moz-specific,
      sliding;
    Info

    每一个 animation-name 的标识符都是由区分大小写的字母 a 到 z、数字 0 到 9、下划线(_)和/或破折号(-)组成。第一个非破折号字符必须是一个字母。此外,标识符的开头不能有两个破折号 (-)。

    形式定义

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

    形式语法

    animation-name: <string>;

    扩展阅读

    兼容性

    LCD tables only load in the browser

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