> For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt.

# transition-delay

APISummary
## Introduction

The transition-delay CSS property specifies the duration to wait before starting a property's transition effect when its value changes.

## Examples

**This is an example below: css-api**

**Entry:** `src/transition-delay`
**Bundle:** `dist/transition-delay.lynx.bundle`

```tsx
import { root, useState } from "@lynx-js/react";
import "./index.scss";

const TransitionDelay = () => {
  const [flag, setFlag] = useState(false);

  const baseStyle = {
    opacity: flag ? "1" : "0.1" as const,
    width: flag ? "100px" : "200px",
    height: flag ? "100px" : "200px",
    backgroundColor: flag ? "blue" : "red",
    visibility: (flag ? "visible" : "hidden") as "visible" | "hidden",
    top: flag ? "0px" : "50px",
    right: flag ? "0px" : "50px",
    bottom: flag ? "0px" : "50px",
    left: flag ? "0px" : "50px",
    transform: flag ? "translateX(0px)" : "translateX(50px)" as const,
  };

  return (
    <scroll-view scroll-orientation="vertical" className="scroll">
      <view className="base" bindtap={() => setFlag(!flag)}>
        <text>Click to transition</text>
      </view>
      <view
        className="base allTransition"
        style={{
          opacity: baseStyle.opacity,
          width: baseStyle.width,
          height: baseStyle.height,
          backgroundColor: baseStyle.backgroundColor,
        }}
      >
        <text>No delay animation</text>
      </view>
      <view
        className="base allTransition"
        style={{
          opacity: baseStyle.opacity,
          width: baseStyle.width,
          height: baseStyle.height,
          backgroundColor: baseStyle.backgroundColor,
          transitionDelay: "1s" as const,
        }}
      >
        <text>1s delay animation</text>
      </view>
      <view
        className="base allTransition"
        style={{
          opacity: baseStyle.opacity,
          width: baseStyle.width,
          height: baseStyle.height,
          backgroundColor: baseStyle.backgroundColor,
          transitionDelay: "2s" as const,
        }}
      >
        <text>2s delay animation</text>
      </view>
      <view
        className="base allTransition"
        style={{
          opacity: baseStyle.opacity,
          width: baseStyle.width,
          height: baseStyle.height,
          backgroundColor: baseStyle.backgroundColor,
          transitionDelay: "3s" as const,
        }}
      >
        <text>3s delay animation</text>
      </view>
    </scroll-view>
  );
};

root.render(<TransitionDelay />);

```

v0.11.0



## Syntax

```css
transition-delay: 2s;
transition-delay: 300ms;
```

### Values

- [`<time>`](/next/api/css/data-type/time.md)

- Default Value
  **0s**

## Formal definition

| Initial value | 0 |
| Applies to | all elements |
| Inherited | no |
| Animatable | no |


## Formal syntax

```
transition-delay:`<time>`;
```

## More

- [transition-property](/next/api/css/properties/transition-property.md)
- [transition-duration](/next/api/css/properties/transition-duration.md)
- [transition](/next/api/css/properties/transition.md)
- [transition-timing-function](/next/api/css/properties/transition-timing-function.md)
- [Animation Event](/next/api/lynx-api/event/animation-event.md)

## Notes

:::info

- `duration` and `delay` require **units**, and it is strongly recommended to bring units.

:::

## Compatibility

**Compatibility Table**

**Query:** `css.properties.transition-delay`

[Source](https://github.com/lynx-family/lynx/blob/develop/tools/css_generator/css_defines/112-transition-delay.json) · [MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/transition-delay)

| Feature | Android | HarmonyOS | iOS | macOS | Windows | Web |
| --- | --- | --- | --- | --- | --- | --- |
| transition-delay | Yes (1.0) | Yes (3.4) | Yes (1.0) | Yes (1.0) | Yes (1.0) | Yes |

**`transition-delay`**

**Specifications:**

