when scroll to x perfom function javasctipt code example
Example: js onscroll event
// HTML:
<element onscroll="myScript">
// JavaScript:
object.addEventListener("scroll", myScript)
// or
object.onscroll = function() { /*...*/ }
// HTML:
<element onscroll="myScript">
// JavaScript:
object.addEventListener("scroll", myScript)
// or
object.onscroll = function() { /*...*/ }