npm.io
0.9.0 • Published 9 years ago

scroll-to-select

Licence
Version
0.9.0
Deps
3
Vulns
0
Weekly
0

scroll-to-select puts a selector beam on a web page, and lights up elements with ids you provide.

Screenshot of a checkbox that's lighting up light blue with a similar color bar behind, reads "HIEEE"

HTML:

<div id="one">ONE</div>
<div id="two">TWO</div>
<div id="three">THREE</div>

Javascript:


scrollToSelect({
  ids: ["one", "two", "three"],
  onSelect: function(oneTwoOrThree) {
    // do your worst
  },
  text: "HIEEE"
})