spotlight-canvas
a simple canvas-based spotlight that can be used to highlight elements
Features:
- a canvas that darkens the screen
- spotlight areas based on circles or polygons
- spotlight areas can be dynamically changed or cleared
- the canvas includes fadeIn and fadeOut functions
Live Example
Rationale
I needed a way to highlight elements in my UI.
Simple Example
var Spotlight = ; // create the scrollboxvar spotlight = ; // create a circle spotlightspotlight;
Installation
npm i spotlight-canvas
API Documentation
https://davidfig.github.io/spotlight/jsdoc/
license
MIT License
(c) 2018 YOPEY YOPEY LLC by David Figatner