diff --git a/posts/platonically-ideal-light-dark-toggle.md b/posts/platonically-ideal-light-dark-toggle.md index 1bdac1b..05741b9 100644 --- a/posts/platonically-ideal-light-dark-toggle.md +++ b/posts/platonically-ideal-light-dark-toggle.md @@ -132,6 +132,10 @@ Default view transition via 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. +### Update 2: Made js button also use view transitions + +via: [document.startViewTransition](https://developer.mozilla.org/en-US/docs/Web/API/Document/startViewTransition) + ## 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.