Debian Codegraph @

www/src/content/reference/03-events/25-htmx-after-viewTransition.md

raw symbols SCIP
1 ---
2 title: "htmx:after:viewTransition"
3 description: "After View Transition completes"
4 ---
5
6 The `htmx:after:viewTransition` event fires after a View Transition animation completes.
7
8 ## When It Fires
9
10 After the View Transition API finishes animating the swap operation.
11
12 ## Event Detail
13
14 - `task` - Transition callback information
15
16 ## Example
17
18 ```javascript
19 htmx.on('htmx:after:viewTransition', (evt) => {
20 console.log('View transition complete');
21 // Perform actions after transition animation
22 });
23 ```
24
25 The swap and transition are both complete at this point.