Simple Scroll Back to Top Plugin Examples with demo

Today, We want to share with you Simple Scroll Back to Top Plugin.In this post we will show you back to top button javascript smooth scrolling, hear for Creating a Back to Top Button with CSS & jQuery we will give you demo and example for implement.In this post, we will learn about How to add a sticky back-to-top button to your website with an example.

Simple Scroll Back to Top Plugin

There are the Following The simple About javascript scroll to top of page Full Information With Example and source code.

As I will cover this Post with live Working example to develop How To Create a Scroll Back To Top Button, so the prevent scroll to top on button click is used for this example is following below.

Step 1: HTML

This Plugin is very simple arrow which fades in when all the visitors start scrolling the Web page.back to top button javascript smooth scrolling

Read Also:  Create Scroll Back to Top Button using jQuery and CSS


<a id="backs_to_top" title="Back to top" href="#">➤</a>

Step 2: JavaScript

Scroll to top when arrow up clicked

$(window).scroll(function() {
var height = $(window).scrollTop();
if (height > 100) {
} else {
$(document).ready(function() {
$("#backs_to_top").click(function(event) {
$("html, body").animate({ scrollTop: 0 }, "slow");
return false;


Step 3: CSS

CSS Source code

#backs_to_top {
width: 40px;
line-height: 40px;
overflow: hidden;
z-index: 999;
display: none;
cursor: pointer;
-moz-transform: rotate(270deg);
-webkit-transform: rotate(270deg);
-o-transform: rotate(270deg);
-ms-transform: rotate(270deg);
transform: rotate(270deg);
position: fixed;
bottom: 50px;
right: 0;
background-color: #DDD;
color: #555;
text-align: center;
font-size: 30px;
text-decoration: none;
#backs_to_top:hover {
background-color: #3d3d3d;
color: #000;

Web Programming Tutorials Example with Demo

Read :

Read Also:  how to call curl with get, post, put, delete in php?


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

I hope you get an idea about scroll to top button bootstrap.
I would like to have feedback on my 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.

About Pakainfo

I am Jaydeep Gondaliya, a software engineer, the founder and the person running Pakainfo. I'm a full-stack developer, entrepreneur and owner of I live in India and I love to write tutorials and tips that can help to other artisan, a Passionate Blogger, who love to share the informative content on PHP, Javascript, JQuery, Laravel, Codeigniter, VueJS, AngularJS and Bootstrap from the early stage.

View all posts by Pakainfo →

Leave a Reply

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