Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

scroll top


$(document).ready(function(){
    $(".scroll-top").click(function() {
        $("html, body").animate({ 
            scrollTop: 0 
        }, "slow");
        return false;
    });
});
Source by dev.to #
 
PREVIOUS NEXT
Tagged: #scroll #top
ADD COMMENT
Topic
Name
8+3 =