| 1 | --- |
| 2 | title: "htmx.config.transitions" |
| 3 | description: "Enable View Transitions API support" |
| 4 | --- |
| 5 | |
| 6 | The `htmx.config.transitions` option, when set to `true`, causes htmx to use the View Transitions API for smooth animations between page updates. |
| 7 | |
| 8 | **Default:** `false` |
| 9 | |
| 10 | ## Example |
| 11 | |
| 12 | ```javascript |
| 13 | htmx.config.transitions = false; |
| 14 | ``` |
| 15 | |
| 16 | ```html |
| 17 | <meta name="htmx-config" content='{"transitions":false}'> |
| 18 | ``` |
| 19 | |
| 20 | Requires browser support for the View Transitions API. |