scrool to top jquerry
$("a[href='#top']").click(function() {
$("html, body").animate({ scrollTop: 0 }, "slow");
return false;
});
scrool to top jquerry
$("a[href='#top']").click(function() {
$("html, body").animate({ scrollTop: 0 }, "slow");
return false;
});
jquery keep scroll position
var scroll = $(window).scrollTop();
// yada
$("html").scrollTop(scroll);
window onscroll position fixed position in jquery
$(function() {
var fixadent = $("#fixadent"), pos = fixadent.offset();
$(window).scroll(function() {
if ($(this).scrollTop() > (pos.top + 10) && fixadent.css('position') == 'static') {
fixadent.addClass('fixed');
} else {
if ($(this).scrollTop() <= pos.top && fixadent.hasClass('fixed')) {
fixadent.removeClass('fixed');
}
})
});
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us