Imagine clicking the next or previous page in a pagination sequence. Depending on whether you are going up or down the sequence, you might want to slide the contents in a different direction.
Imagine clicking the next or previous page in a pagination sequence. Depending on whether you are going up or down the sequence, you might want to slide the contents in a different direction.
The flow goes like this:
- Click a link
- VT into the loading screen
- Fetch the data of the new page in the background
- VT into the new page
The flow goes like this:
- Click a link
- VT into the loading screen
- Fetch the data of the new page in the background
- VT into the new page
This one remembers the last direction you scrolled into, which you can use to build “hidey bars”: when scrolling down (or having scrolled down), the hidey bar hides itself. When then scrolling back up, the hidey bar reveals itself.
This one remembers the last direction you scrolled into, which you can use to build “hidey bars”: when scrolling down (or having scrolled down), the hidey bar hides itself. When then scrolling back up, the hidey bar reveals itself.
To help with that, I created this VT Feature Explorer (powered by View Transitions)
web.dev/blog/same-do...
To help with that, I created this VT Feature Explorer (powered by View Transitions)
web.dev/blog/same-do...