Go to Top(slide up)

Developer
Size
2,964 Kb
Views
4,048

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) Previews

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);
});
Go to Top(slide up) - Script Codes
Go to Top(slide up) - Script Codes
Home Page Home
Developer Tommy
Username hoehoe
Uploaded December 30, 2022
Rating 3
Size 2,964 Kb
Views 4,048
Do you need developer help for Go to Top(slide up)?

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!

Tommy (hoehoe) Script Codes
Create amazing captions with AI!

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!