> For the complete documentation index, see [llms.txt](https://help.brickspacelab.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.brickspacelab.com/slab/advanced-customizations/theme-architecture/styling/utility-classes/animation.md).

# Animation

`src/css/utilities/animation.css`

Shorthand transition and scroll-driven animation utilities. Prefer these over writing `transition` or `animation` properties inline.

## Transitions

Apply `transition-all` with a fixed duration:

| Class                 | Transition                    |
| --------------------- | ----------------------------- |
| `animation-100--all`  | `transition-all duration-100` |
| `animation-300--all`  | `transition-all duration-300` |
| `animation-500--all`  | `transition-all duration-500` |
| `animation-5000--all` | `transition-all` at 5000ms    |

Apply `transition` (Tailwind default properties) with a fixed duration:

| Class            | Transition                 |
| ---------------- | -------------------------- |
| `animation-100`  | `transition duration-100`  |
| `animation-200`  | `transition duration-200`  |
| `animation-300`  | `transition duration-300`  |
| `animation-500`  | `transition duration-500`  |
| `animation-1000` | `transition duration-1000` |
| `animation-5000` | `transition` at 5000ms     |

## Keyframe animations

| Class                 | Effect                                          |
| --------------------- | ----------------------------------------------- |
| `animate-pause`       | Pauses a running CSS animation                  |
| `animate-xscroll`     | Continuous horizontal scroll (10s linear loop)  |
| `animate-widthexpand` | Width expands 0→100% with fade (500ms infinite) |
| `animate-hop1`        | Vertical hop, stagger offset 0.2s               |
| `animate-hop2`        | Vertical hop, stagger offset 0.4s               |
| `animate-hop3`        | Vertical hop, stagger offset 0.6s               |

## Scroll-driven animations

These use `animation-timeline: view()` and require browser support for `animation-range`. Elements animate as they scroll into and out of the viewport within the 10%–90% range. The `@supports` guard means they silently do nothing in unsupported browsers.

| Class                         | Enter / exit effect                |
| ----------------------------- | ---------------------------------- |
| `scroll-fullblurinout-10-90`  | Fade + blur in and out             |
| `scroll-slideupdown-10-90`    | Slide down from above, exit upward |
| `scroll-slidedownup-10-90`    | Slide up from below, exit downward |
| `scroll-slideleftright-10-90` | Slide in from left, exit left      |
| `scroll-sliderightleft-10-90` | Slide in from right, exit right    |
| `scroll-zoominout-10-90`      | Scale up from 80%, fade in         |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.brickspacelab.com/slab/advanced-customizations/theme-architecture/styling/utility-classes/animation.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
