Skip to content

Instantly share code, notes, and snippets.

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

Embed
What would you like to do?
jQuery ScrollTop-2
<!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
You can’t perform that action at this time.