Scroll to Top
How do I make an scroll to top?
What is a scroll to top? How do you make a scroll to top? This script and codes were developed by Jeremy P. Beasley on 20 September 2022, Tuesday.
Scroll to Top - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Scroll to Top</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <a class="button">this is the button</a> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Scroll to Top - Script Codes CSS Codes
body { background: green url(http://www.releasedonkey.com/big/MV5BMTMzNzcwMzE2OV5BMl5BanBnXkFtZTcwNzUxNDAxMw/picture-of-bill-murray-and-richard-dreyfuss-in-what-about-bob-1991--large-picture.jpg) no-repeat top center;
}
.button { background: green; color: white; padding: 15px; position: relative; top: 2000px; cursor: pointer;
}
Scroll to Top - Script Codes JS Codes
$( document ).ready(function() {
$( ".button" ).click(function() { window.scrollTo(0,0); // or smooth /*$("html, body").animate({ scrollTop: 0 }, "slow"); return false; */
});
});
![Scroll to Top - Script Codes](http://shots.codepen.io/jeremypbeasley/pen/wpyEk-512.jpg)
Developer | Jeremy P. Beasley |
Username | jeremypbeasley |
Uploaded | September 20, 2022 |
Rating | 3 |
Size | 1,932 Kb |
Views | 20,240 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Credit Card Form Auto-tab Continuous Typing V2 | 2,289 Kb |
Type to Search Anywhere | 2,858 Kb |
A Pen by Jeremy P. Beasley | 9,999 Kb |
Lightbox from BG Image | 4,039 Kb |
Art 3.2 | 2,432 Kb |
Number Climb | 1,852 Kb |
GridGridGrid | 5,268 Kb |
The Big List | 3,435 Kb |
Lazy Load Test | 3,264 Kb |
Sprite Animation Sequence | 2,715 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Another brick in the wall | Fivera | 1,955 Kb |
E-mail Template | SoloMDFK | 4,871 Kb |
Classy Blockquote Styling | Andrewwright | 3,212 Kb |
CSS Tooltips | Darylldoyle | 2,599 Kb |
Css color for svg | Ademilter | 2,392 Kb |
Animated css matrix type | NielsOeltjen | 3,484 Kb |
Count up | Alanshortis | 2,391 Kb |
Update CSS Variables with JS | Wesbos | 2,335 Kb |
Mini Profile | Frytyler | 3,828 Kb |
Menu | Vivi_Lai | 1,210 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!