This is pretty exciting! You used to only be able to do this on single page apps.
The View Transition API lets you add transitions between views of a website.
— Read on developer.chrome.com/docs/web-platform/view-transitions/
Deeper dive:
https://news.ycombinator.com/item?id=43308907
https://jakearchibald.com/2024/view-transitions-handling-aspect-ratio-changes/