Skip to content

Instantly share code, notes, and snippets.

@codingwithsara codingwithsara/index.html Secret
Created Jul 14, 2019

What would you like to do?
jQuery ScrollTop-2
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<title>Scroll Top</title>
#text {
width: 300px;
margin: 0 auto;
#scroll {
display: none;
position: fixed;
bottom: 20px;
right: 20px;
color: #696969;
background-color: #d3d3d3;
width: 50px;
height: 50px;
border-radius: 25px;
line-height: 50px;
text-align: center;
font-size: 24px;
<div id="text">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.