Skip to content

Commit

Permalink
Fix View Transitions code block formatting (#9174)
Browse files Browse the repository at this point in the history
  • Loading branch information
evadecker authored Nov 22, 2023
1 parent 4d1274c commit 7c485ff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/astro/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
Three new events now complement the existing `astro:after-swap` and `astro:page-load` events:

```javascript
astro: before - preparation; // Control how the DOM and other resources of the target page are loaded
astro: after - preparation; // Last changes before taking off? Remove that loading indicator? Here you go!
astro: before - swap; // Control how the DOM is updated to match the new page
astro:before-preparation; // Control how the DOM and other resources of the target page are loaded
astro:after-preparation; // Last changes before taking off? Remove that loading indicator? Here you go!
astro:before-swap; // Control how the DOM is updated to match the new page
```

The `astro:before-*` events allow you to change properties and strategies of the view transition implementation.
Expand Down

0 comments on commit 7c485ff

Please sign in to comment.