Friday, March 6

Scroll to top on a selector with animate in jQuery.

<script>

    jQuery('html, body').animate({
        scrollTop: (jQuery('.tab-container').first().offset().top)
    },500);

</script>

No comments:

Post a Comment