Go to Top(slide up)
How do I make an go to top(slide up)?
What is a go to top(slide up)? How do you make a go to top(slide up)? This script and codes were developed by Tommy on 30 December 2022, Friday.
Go to Top(slide up) - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Go to Top(slide up)</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel='stylesheet prefetch' href='https://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css'> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ @import url(https://www.google.com/fonts#QuickUsePlace:quickUse/Family:Roboto);
* { box-sizing: border-box;
}
html, body { font-family: 'Roboto', sans-serif;
}
h2, p { text-align: center; margin: 20px 0; color: #555;
}
.backToTop { width: 40px; height: 40px; background-color: #ddd; position: fixed; bottom: -40px; right: 10px; opacity: .7; text-align: center; padding-top: 7px; transition: .2s;
}
.backToTop:hover { opacity: 1; border-radius: 50%;
}
.backToTop:after { font-family: fontawesome; font-size: 24PX; content: "\f062";
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <div class="backToTop"></div>
<h2>Scroll down :D</h2>
<p>hello</p>
<p>hello</p>
<p>hello</p>
<p>hello</p>
<p>hello</p>
<p>hello</p>
<p>hello</p>
<p>hello</p>
<p>hello</p>
<p>hello</p>
<p>hello</p>
<p>hello</p>
<p>hello</p>
<p>hello</p>
<p>hello</p>
<p>hello</p>
<p>hello</p>
<p>hello</p>
<p>hello</p>
<p>hello</p>
<p>hello</p>
<p>hello</p>
<p>hello</p>
<p>hello</p>
<p>hello</p>
<p>hello</p>
<p>hello</p>
<p>hello</p>
<p>hello</p>
<p>hello</p>
<p>hello</p>
<p>hello</p>
<p>hello</p>
<p>hello</p>
<p>hello</p>
<p>hello</p>
<p>hello</p>
<p>hello</p>
<p>hello</p>
<p>hello</p>
<p>hello</p>
<p>hello</p>
<p>hello</p>
<p>hello</p>
<p>hello</p>
<p>hello</p>
<p>hello</p>
<p>hello</p>
<p>hello</p>
<p>hello</p>
<p>hello</p>
<p>hello</p>
<p>hello</p>
<p>hello</p>
<p>hello</p>
<p>hello</p>
<p>hello</p>
<p>hello</p>
<p>hello</p>
<p>hello</p>
<p>hello</p> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Go to Top(slide up) - Script Codes CSS Codes
@import url(https://www.google.com/fonts#QuickUsePlace:quickUse/Family:Roboto);
* { box-sizing: border-box;
}
html, body { font-family: 'Roboto', sans-serif;
}
h2, p { text-align: center; margin: 20px 0; color: #555;
}
.backToTop { width: 40px; height: 40px; background-color: #ddd; position: fixed; bottom: -40px; right: 10px; opacity: .7; text-align: center; padding-top: 7px; transition: .2s;
}
.backToTop:hover { opacity: 1; border-radius: 50%;
}
.backToTop:after { font-family: fontawesome; font-size: 24PX; content: "\f062";
}
Go to Top(slide up) - Script Codes JS Codes
$(window).scroll(function() { var position = $(window).scrollTop(); console.log(position); if (position > 200) { $('.backToTop').stop().animate({ 'bottom': 10 }, 200); } else { $('.backToTop').stop().animate({ 'bottom': -50 }, 200); }
});
$('.backToTop').click(function() { $('body').stop().animate({ 'scrollTop': 0 }, 500);
});
Developer | Tommy |
Username | hoehoe |
Uploaded | December 30, 2022 |
Rating | 3 |
Size | 2,964 Kb |
Views | 4,048 |
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 |
Customise Scroll Bar with css | 2,853 Kb |
Flex box | 2,171 Kb |
Get Form value with jQuery | 1,931 Kb |
CSS animation | 2,194 Kb |
Timeline with CSS | 2,552 Kb |
Web SQL | 1,983 Kb |
CSS Sub-orderd list | 1,965 Kb |
Parallax with only css | 3,096 Kb |
Custom checbox with css | 2,825 Kb |
Materialize css | 3,074 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 |
Lazy Load for Background Images | The_ruther4d | 2,977 Kb |
Asteroids | Davedehaan | 2,846 Kb |
Atom | Bhlaird | 1,932 Kb |
Sign Up Form | Sicontis | 5,272 Kb |
Electric worm | Jeffibacache | 2,377 Kb |
Toggling Divs with jQuery | Yying6 | 1,967 Kb |
SlideDown FixedMenu | Mp_graphic | 5,602 Kb |
Using Flickr API | MoyArt | 6,761 Kb |
A Pen by Eka Risyana | Risyana | 3,705 Kb |
Arrow Navigation | Hinducows | 1,973 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!