In the world of
User:Numbermaniac/goToBottom.js, we can find a wide variety of elements that allow us to explore and deepen their meaning. From its origins to the present,
User:Numbermaniac/goToBottom.js has played a fundamental role in people's lives, significantly impacting multiple aspects. Throughout history,
User:Numbermaniac/goToBottom.js has been the subject of study, debate and controversy, which has contributed to the enrichment of knowledge on this topic. In this article, we will delve into the world of
User:Numbermaniac/goToBottom.js to understand its importance, evolution and relevance in today's society.
// ]
$(function(){
'use strict';
$('body').append('<span id="to-bottom">▼ Go to bottom</span>');
var $bottomButton = $('#to-bottom');
$bottomButton.css({
'color': '#000',
'position': 'fixed',
'bottom': '-30px',
'right': '4px',
'cursor': 'pointer',
'transition': 'bottom 0.5s',
'-webkit-transition': 'bottom 0.5s',
'user-select': 'none',
'-webkit-user-select': 'none',
'-moz-user-select': 'none',
'-ms-user-select': 'none'
}).click(function(){
$('html, body').animate({scrollTop:$(document).height()},'slow');
});
$(window).scroll(function(){
if ($(window).scrollTop() / $(document).height() < 0.8) {
$bottomButton.css('bottom','4px');
} else{
$bottomButton.css('bottom','-30px');
}
});
});