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/transition-property.md.
Lynx
  • 简体中文
  • transition-property

    介绍

    用于设置过渡动画的属性类型。

    使用示例

    语法

    /* Keyword values */
    transition-property: none;
    transition-property: all;
    
    /* <custom-ident> values */
    transition-property: test_05;
    transition-property: -specific;
    transition-property: sliding-vertically;
    
    /* Multiple values */
    transition-property: test1, animation4;
    transition-property: all, height, color;

    取值

    • left
    • right
    • top
    • bottom
    • width
    • height
    • opacity
    • background-color
    • color
    • transform
    • transform-origin
    • max-width
    • min-width
    • max-height
    • min-height
    • padding-left
    • padding-right
    • padding-top
    • padding-bottom
    • margin-left
    • margin-right
    • margin-top
    • margin-bottom
    • border-left-width
    • border-right-width
    • border-top-width
    • border-bottom-width
    • border-left-color
    • border-right-color
    • border-top-color
    • border-bottom-color
    • flex-basis
    • flex-grow
    • filter

    形式定义

    初始值空值
    适用元素所有元件
    是否支持继承no
    是否支持动画no

    形式语法

    transition-property =
      none                           |
      <single-transition-property>#
    
    <single-transition-property> =
      all             |
      <custom-ident>

    扩展阅读

    兼容性

    LCD tables only load in the browser

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