Dev Design Library

Animated Theme Toggler

A smooth animated theme toggler that uses the View Transition API to create a circular reveal effect when switching between light and dark themes.

Animated Theme Toggler preview
Library
Animations (Svelte)
Framework
Svelte
Type
block
License
MIT
Install
pnpm dlx shadcn-svelte@latest add https://sv-animations.vercel.app/r/animated-theme-toggler.json
Files
  • src/lib/components/magic/animated-theme-toggler/animated-theme-toggler.svelte
  • src/lib/components/magic/animated-theme-toggler/index.ts
  • src/lib/utils.ts
Source
https://github.com/SikandarJODD/animations

Categories

More from Animations (Svelte)