|

How to get the current scroll top position?

How to get the current scroll top position? Copy and past the following codes below to your JS file.

var current_scroll = window.scrollY;
console.log( current_scroll );

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *