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 |
Vue with axios sample | 2,991 Kb |
A Pen by Tommy | 1,738 Kb |
Custom checbox with css | 2,825 Kb |
CSS animation | 2,194 Kb |
Parallax with only css | 3,096 Kb |
CSS Sub-orderd list | 1,965 Kb |
Get Form value with jQuery | 1,931 Kb |
Web SQL | 1,983 Kb |
Flex box | 2,171 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 |
Countdown with Rings | Ewganoel | 2,490 Kb |
Minimal Menu | Achudars | 3,430 Kb |
Rotate Demo | Agelber | 3,061 Kb |
Page Transitions in Backbone | Mikefowler | 3,691 Kb |
A form arranged using automatic placement. | Vikasford | 2,103 Kb |
SnappySnippet Test | Elmsoftware | 8,385 Kb |
IE11 Test | Boostnewmedia | 4,998 Kb |
Price Comparison Table | Orrinward | 3,459 Kb |
Heatmap Color Scales | Stevepepple | 2,331 Kb |
Portfolio Page | HuffmanJ25 | 5,240 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!