When a certain value of scroll is reached in a block, some code must be executed. But it does not work. Why?
var scroll = $('#block').scrollTop(); if (scroll == 100) { alert('123'); } When a certain value of scroll is reached in a block, some code must be executed. But it does not work. Why?
var scroll = $('#block').scrollTop(); if (scroll == 100) { alert('123'); } Source: https://ru.stackoverflow.com/questions/780778/
All Articles