# Transition Property

Set which properties have a transition effect.

**Widely available.** This feature is well established and works across many devices and browser versions.

Chrome 26 · Edge 12 · Firefox 16 · Safari 9

| Class | Properties | Value |
|-------|------------|-------|
| `tp:a` | transition-property | `all` |
| `tp:bs` | transition-property | `box-shadow` |
| `tp:c` | transition-property | `color, background-color, border-color, text-decoration-color, fill, stroke` |
| `tp:d` | transition-property | `height, width` |
| `tp:h` | transition-property | `height` |
| `tp:none` | transition-property | `none` |
| `tp:o` | transition-property | `opacity` |
| `tp:t` | transition-property | `transform, translate, scale, rotate` |
| `tp:w` | transition-property | `width` |

## Variants

Prefix any class with a variant to apply it only under that condition. Variants stack, as in `@md:h:tp:h`.

### Breakpoints

Apply a class from a viewport width up. Each breakpoint covers its width & every width above it.

| Class | Applies |
|-------|---------|
| `@xs:tp:h` | From 32rem up. |
| `@sm:tp:h` | From 40rem up. |
| `@md:tp:h` | From 48rem up. |
| `@lg:tp:h` | From 64rem up. |
| `@xl:tp:h` | From 80rem up. |
| `@xxl:tp:h` | From 96rem up. |

### Containers

Apply a class from a container's width up, not the viewport's. Mark the parent with `ct:is` first.

| Class | Applies |
|-------|---------|
| `@c:xs:tp:h` | Container from 32rem up. |
| `@c:sm:tp:h` | Container from 40rem up. |
| `@c:md:tp:h` | Container from 48rem up. |
| `@c:lg:tp:h` | Container from 64rem up. |
| `@c:xl:tp:h` | Container from 80rem up. |
| `@c:xxl:tp:h` | Container from 96rem up. |

### Media

Apply a class when the device or the page matches a condition, or on the first frame an element renders.

| Class | Applies |
|-------|---------|
| `@pc:tp:h` | On a touch screen. |
| `@prm:tp:h` | With reduced motion on. |
| `@st:tp:h` | On the first frame. |

### States

Apply a class only while the element is in a state, such as hovered, focused or checked.

| Class | Applies |
|-------|---------|
| `h:tp:h` | On :hover. |
| `f:tp:h` | On :focus. |
| `fv:tp:h` | On :focus-visible. |
| `a:tp:h` | On :active. |
| `d:tp:h` | On :disabled. |
| `fc:tp:h` | On :first-child. |
| `c:tp:h` | On :checked. |
| `e:tp:h` | On :empty. |
| `fw:tp:h` | On :focus-within. |
| `i:tp:h` | On :invalid. |
| `in:tp:h` | On :indeterminate. |
| `lc:tp:h` | On :last-child. |
| `nc:tp:h` | On :nth-child. |
| `r:tp:h` | On :required. |
| `ro:tp:h` | On :read-only. |
| `v:tp:h` | On :valid. |

### Pseudo Elements

Style a part of the element rather than the element itself, such as its placeholder or the selected text.

| Class | Applies |
|-------|---------|
| `a::tp:h` | On ::after. |
| `b::tp:h` | On ::before. |
| `p::tp:h` | On ::placeholder. |
| `s::tp:h` | On ::selection. |