Skip to content

A quick demo of how to use the Page Transitions API for animating theme transitions

Notifications You must be signed in to change notification settings

LorisSigrist/dark-mode-transition

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Dark Mode Transitions

Just a quick showcase of how you can use the (very experimental) page-transitions api to toggle a sites theme.

Note: ⚠️ This example is for an outdated version of the view-transitions-api and no longer works

Theme switching with page transition example

The code for this demo was largeley inspired by this demo for the page transitions api. I then adapted it to do theme changes.

About

A quick demo of how to use the Page Transitions API for animating theme transitions

Topics

Resources

Stars

Watchers

Forks

Languages