scroll-to-select
v0.9.0
Published
Horizontal selection beam that lights up specific elements and calls select/unselect callbacks
Downloads
40
Readme
scroll-to-select puts a selector beam on a web page, and lights up elements with ids you provide.
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"
})