scroll to element jquery
$('html, body').animate({
scrollTop: $("#grepperRocks").offset().top
});
scroll to element jquery
$('html, body').animate({
scrollTop: $("#grepperRocks").offset().top
});
scrool to top jquerry
$("a[href='#top']").click(function() {
$("html, body").animate({ scrollTop: 0 }, "slow");
return false;
});
jquery get document scrolltop
var top = ($(window).scrollTop() || $("body").scrollTop());
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');
}
})
});
jquery scroll to position
jQuery(document).ready(function($) {
$('a[href^="#"]').bind('click.smoothscroll',function (e) {
e.preventDefault();
var target = this.hash,
$target = $(target);
$('html, body').stop().animate( {
'scrollTop': $target.offset().top-40
}, 900, 'swing', function () {
window.location.hash = target;
} );
} );
} );
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