Skip to content

Iskari/spotlight.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Spotlight.JS

Usage

Include the following inside your HTML file.

    <script defer type="text/javascript" src="spotlight.js"></script>
    <script type="text/javascript">
        let spotlight = new Spotlight();
    </script>

Configuration

You can configure the color, the height and the width of your Spotlight.

Height

Unit: px
    let spotlight = new Spotlight({
        height: 200,
    });

Width

Unit: px
    let spotlight = new Spotlight({
        width: 200,
    });

Color

Unit: HEX Color
    let spotlight = new Spotlight({
        color: '#FFFFFF',
    });

Contributing

Just do it.

About

Spotlight.JS adds a Spotlight Effect to every website

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published