commented on view transition in blog post
Some checks failed
/ Generate Site (push) Has been cancelled
/ Publish Site (push) Has been cancelled

This commit is contained in:
Pagwin 2025-10-20 17:01:13 -04:00
parent 7717c9b7d0
commit 9dcb01b2ae

View file

@ -120,6 +120,18 @@ That said the demo above doesn't do that because
As such the demo uses a service worker and because service workers can't access cookies I use IndexedDB, furthermore because service workers can't access DOM APIs the DOM manipulation is done by a hard coded string replacement.
### Update: Added `view-transition`
Default view transition via
```css
@view-transition {
navigation: auto;
}
```
Makes this technique slightly better visually and so I added it to the demo. Although not sure if/how I'd add it to a real world application which doesn't have a pretty robust system for view transition setup.
## Why Don't I Have a Light/Dark Toggle Button on This Blog?
Because doing it correctly is more effort than it's worth, I don't want to do it incorrectly, and for most people their system preference will already match what they want.