0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-01-20 22:12:38 -05:00

fix: Changelog formatting for 3.6.0 View Transition events (#9176)

Co-authored-by: Eva Decker <itsevadecker@gmail.com>
This commit is contained in:
Martin Trapp 2023-11-23 00:20:33 +01:00 committed by GitHub
parent ae4d949e7d
commit 481c13a08c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.