An open API service indexing awesome lists of open source software.

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 🌟

Awesome Lists containing this project

README

          

# fancy-theme-switcher

[![fancy-theme-switcher](./public/thumbnail.png)](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
```