Smooth Scroll to Top with jQuery

Today, We want to share with you Smooth Scroll to Top with jQuery.In this post we will show you How To Create a Scroll Back To Top Button, hear for jQuery: Scroll to the top of the page we will give you demo and example for implement.In this post, we will learn about Scroll to the top of the page using JavaScript/jQuery with an example.

Smooth Scroll to Top with jQuery

There are the Following The simple About Smooth Scroll to Top with jQuery Full Information With Example and source code.

  Laravel Eloquent Get Last Inserted ID using PHP

As I will cover this Post with live Working example to develop javascript scroll to top of div, so the jQuery Smooth Animated Scroll to Top of page example is following below.

Scroll to top JQuery

$(document).ready(function(){    
    $('.TopOfScrollBar').click(function(){
        $('html, body').animate({scrollTop : 0},700);
        return false;
    });
});

List of all Google Adsense, VueJS, AngularJS, PHP, Laravel Examples.


Download Project Scripts

using Class

$(window).scroll(function(){
        if ($(this).scrollTop() > 120) {
            $('.TopOfScrollBar').fadeIn();
        } else {
            $('.TopOfScrollBar').fadeOut();
        }
    });

Simple Scroll to top JQuery script

$(document).ready(function(){    
        $(window).scroll(function(){
        if ($(this).scrollTop() > 120) {
            $('.TopOfScrollBar').fadeIn();
        } else {
            $('.TopOfScrollBar').fadeOut();
        }
    });
 
    $('.TopOfScrollBar').click(function(){
        $('html, body').animate({scrollTop : 0},700);
        return false;
    });
 
});

Web Programming Tutorials Example with Demo

Read :

  sticky Scroll Back to Top Button using jQuery and CSS

Summary

You can also read about AngularJS, ASP.NET, VueJs, PHP.

I hope you get an idea about Smooth Scroll to Top with jQuery.
I would like to have feedback on my infinityknow.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.


Related FAQ

Here are some more FAQ related to this Article:

  1.   PHP Class Inheritance call parent constructor
  2.   jQuery An Animated Scroll To Top Button
  3.   Simple Scroll Back to Top Plugin Examples with demo
  4.   jQuery Back to top
  5.   Form Input Bindings in vue.js
  6.   Angular 6 Hello World Application from Scratch
  7.   Simple Jquery Scroll To Top Example
  8.   jquery remove square brackets from string
  9.   SSL forcefully Redirect HTTP to HTTPS Using .htaccess File
  10.   VueJS Routing and Templating example

Leave a Reply

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