0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-01-27 22:19:04 -05:00

Fix View Transitions code block formatting (#9174)

This commit is contained in:
Eva Decker 2023-11-22 16:48:15 -05:00 committed by GitHub
parent 4d1274c479
commit 7c485ffc86
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.