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.

  laravel where date between multiple columns

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

index.html

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

Step 2: JavaScript

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


Download Project Scripts

Scroll to top when arrow up clicked

$(window).scroll(function() {
var height = $(window).scrollTop();
if (height > 100) {
$('#backs_to_top').fadeIn();
} else {
$('#backs_to_top').fadeOut();
}
});
$(document).ready(function() {
$("#backs_to_top").click(function(event) {
event.preventDefault();
$("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 :

  Simple Jquery Scroll To Top Example

Summary

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 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.   Smooth Scroll to Top with jQuery
  2.   Top 10 Advanced CSS Interview Questions Answers
  3.   sticky Scroll Back to Top Button using jQuery and CSS
  4.   Back to Top Button using jQuery and CSS - Scroll to Top Example
  5.   jQuery An Animated Scroll To Top Button
  6.   Create Scroll Back to Top Button using jQuery and CSS
  7.   Laravel GET POST PUT DELETE Methods
  8.   PHP Laravel 6 create Pagination Example - demo
  9.   Jquery Ajax Form Submit examples using PHP
  10.   Vue JS - Get Query String Value Example

Leave a Reply

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