jQuery Plugin To Set Spotlight Focus On DOM Elements SpotLight js - Download jQuery Plugin To Set Spotlight Focus On DOM Elements - SpotLight.js

Download jQuery Plugin To Set Spotlight Focus On DOM Elements – SpotLight.js

Posted on

This time I will share jQuery Plugin and tutorial about jQuery Plugin To Set Spotlight Focus On DOM Elements – SpotLight.js, hope it will help you in programming stack.

jQuery Plugin To Set Spotlight Focus On DOM Elements SpotLight js - Download jQuery Plugin To Set Spotlight Focus On DOM Elements - SpotLight.js
File Size: 5.06 KB
Views Total: 820
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   



SpotLight.js is a super tiny jQuery plugin for creating a spotlight overlay on your webpage to bring the user’s focus to a specific element.

How to use it:

1. Add jQuery JavaScript library and the jQuery spotlight.js plugin to your webpage.

1 <script src="//code.jquery.com/jquery-1.11.3.min.js"></script>
2 <script src="jquery.spotlight.js"></script>

2. Call the plugin on your desired DOM element and done.

1 $(".demo").spotLightOn();

3. Possible options.

01 $(".demo").spotLightOn({
02  
03   // background color of the highlighted area
04   color: "#ffffff",
05  
06   // background color of the overlay
07   backgroundColor: "#000000",
08  
09   // opacity
10   opacity: "0.4"
11  
12 });

This awesome jQuery plugin is developed by salehi186. For more Advanced Usages, please check the demo page or visit the official website.




source : jqueryscript.net