Theme Toggle View Transitions
theme-toggle.rdsx.dev · Micro interactions · Free
Light and dark mode switch animations using the View Transitions API, with the CSS for each one.
What it is
Short guide with seven demos: circle reveals, blurred circles, polygons, a gradient wipe and two GIF wipes. It shows the two lines of JavaScript you need, then the CSS behind each effect so you can copy and change it.
Is it for you?
- Made for
- Front-end developers who want a nicer animation when people switch between light and dark mode.
- You need
- A browser with View Transitions support. Others just switch without the animation
- Price
- Free
What you can do with it
- Add a circle reveal to a dark mode button
- Learn how view transition masks and clip paths work
- Copy ready CSS for a theme switch effect
Good to know: The GitHub repo has no licence file, so check with the author before reusing code commercially.



