-
-
Save codingwithsara/1c186409a726367baf4aeca51791e41d to your computer and use it in GitHub Desktop.
jQuery ScrollTop-2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Scroll Top</title> | |
<style> | |
#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; | |
} | |
</style> | |
</head> | |
<body> | |
<div id="text"> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment