Skip to content

A light-weight, no-dependency, vanilla JavaScript engine to drive the user's focus across the page

License

Notifications You must be signed in to change notification settings

rahullakhaney/driver.js

Repository files navigation

spotlight-js

Allows highlighting any element, adding feature introduction, adding hints

Highlighting Single Elements

const spotlight = new Spotlight({
  opacity: 0.7,  // opacity for the background
  padding: 5,    // padding around the element
});

spotlight.highlight('#some-element');
spotlight.clear();

About

A light-weight, no-dependency, vanilla JavaScript engine to drive the user's focus across the page

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 68.8%
  • HTML 27.3%
  • CSS 3.9%