https://github.com/malkiii/fancy-theme-switcher
A theme toggle button using view transition API 🌟
https://github.com/malkiii/fancy-theme-switcher
animation dark-mode javascript theme-switcher typescript view-transitions-api
Last synced: 3 months ago
JSON representation
A theme toggle button using view transition API 🌟
- Host: GitHub
- URL: https://github.com/malkiii/fancy-theme-switcher
- Owner: malkiii
- Created: 2024-10-18T10:13:07.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-10-22T18:34:36.000Z (almost 2 years ago)
- Last Synced: 2026-03-31T06:32:37.042Z (4 months ago)
- Topics: animation, dark-mode, javascript, theme-switcher, typescript, view-transitions-api
- Language: EJS
- Homepage: https://malkiii.github.io/fancy-theme-switcher/
- Size: 286 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# fancy-theme-switcher
[](https://malkiii.github.io/fancy-theme-switcher)
> a theme toggle button built using the [View Transitions API](https://developer.mozilla.org/en-US/docs/Web/API/ViewTransition), you can copy the code directly from [`public/script.js`](https://github.com/malkiii/fancy-theme-switcher/blob/master/public/script.js) file. See the [demo](https://malkiii.github.io/fancy-theme-switcher).
# Local Setup
To install dependencies:
```bash
bun install
```
To run:
```bash
bun run dev
```