I followed the tutorial to get the sticky back button that will appear when you scroll down. For some reason, it appears when you are at the top of the page after the first page load. If you scroll down, then completely back, it will disappear (as it should be). But initially he does not behave properly. Any idea?
Here is the live page on which I use it, you can see in the lower right corner: http://willryan.us
HTML
<a href="#" class="go-top" style="display: inline;">Back to top</a> <script> $(document).ready(function() { </script>
CSS
.go-top { position: fixed; bottom: 0.75em; right: 0.5em; text-decoration: none; color: white; background-color: rgba(0, 0, 0, 0.25); font-size: 12px; padding: 10px; display: none; margin: 0; } .go-top:hover { background-color: rgba(0, 0, 0, 0.6); color: white; text-decoration: none; }
javascript jquery css jquery-animate scroll
Will ryan
source share