# Will Change

Hint which properties of an element are about to animate.

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

Chrome 36 · Edge 79 · Firefox 36 · Safari 9.1

| Class | Properties | Value |
|-------|------------|-------|
| `wc:auto` | will-change | `auto` |
| `wc:c` | will-change | `contents` |
| `wc:o` | will-change | `opacity` |
| `wc:s` | will-change | `scale` |
| `wc:sp` | will-change | `scroll-position` |
| `wc:t` | will-change | `transform` |
| `wc:tr` | will-change | `translate` |

## Variants

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

### Breakpoints

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

| Class | Applies |
|-------|---------|
| `@xs:wc:s` | From 32rem up. |
| `@sm:wc:s` | From 40rem up. |
| `@md:wc:s` | From 48rem up. |
| `@lg:wc:s` | From 64rem up. |
| `@xl:wc:s` | From 80rem up. |
| `@xxl:wc:s` | 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:wc:s` | Container from 32rem up. |
| `@c:sm:wc:s` | Container from 40rem up. |
| `@c:md:wc:s` | Container from 48rem up. |
| `@c:lg:wc:s` | Container from 64rem up. |
| `@c:xl:wc:s` | Container from 80rem up. |
| `@c:xxl:wc:s` | 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:wc:s` | On a touch screen. |
| `@prm:wc:s` | With reduced motion on. |
| `@st:wc:s` | 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:wc:s` | On :hover. |
| `f:wc:s` | On :focus. |
| `fv:wc:s` | On :focus-visible. |
| `a:wc:s` | On :active. |
| `d:wc:s` | On :disabled. |
| `fc:wc:s` | On :first-child. |
| `c:wc:s` | On :checked. |
| `e:wc:s` | On :empty. |
| `fw:wc:s` | On :focus-within. |
| `i:wc:s` | On :invalid. |
| `in:wc:s` | On :indeterminate. |
| `lc:wc:s` | On :last-child. |
| `nc:wc:s` | On :nth-child. |
| `r:wc:s` | On :required. |
| `ro:wc:s` | On :read-only. |
| `v:wc:s` | 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::wc:s` | On ::after. |
| `b::wc:s` | On ::before. |
| `p::wc:s` | On ::placeholder. |
| `s::wc:s` | On ::selection. |