Press "Enter" to skip to content

Spotlight Toggles Dark Light Mode Effect In JavaScript

Dark Light Mode is an alternative implementation of Dark Mode that applies a spotlight effect to the entire page when Dark Mode is activated.

day and night mode javascript, dark mode javascript, css spotlight effect, dark mode toggle button css, javascript spotlight effect, how to change from dark mode to light mode

Dark & Light Switch Mode Toggle for Bootstrap 5

How to make use of it:

1. Install & download the bundle with the package supervisor.

# Yarn
$ yarn add dark-light-mode

# NPM
$ npm i dark-light-mode --save

2. Import the Dark Light Mode as a module.

<script type="module" src="./src/dark-light-mode.mjs"></script>

3. Or from a CDN.

<script type="module" src="https://unpkg.com/dark-light-mode"></script>

4. Create a dark mode switcher on the web page.

<dark-light-mode />

Spotlight Effect In JavaScript, Dark Light Mode Plugin/Github, bs dark mode toggle


See Demo And Download

Official Website(justjavac): Click Here

This superior jQuery/javascript plugin is developed by justjavac. For extra Advanced Usages, please go to the official website.

Be First to Comment

    Leave a Reply

    Your email address will not be published.