scroll-to-select

0.9.0 • Public • Published

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"
})

Readme

Keywords

none

Package Sidebar

Install

npm i scroll-to-select

Weekly Downloads

2

Version

0.9.0

License

none

Last publish

Collaborators

  • erikpukinskis