Working...
Photo
Sebastian K.
Apr 20 '16 at 14:42

Navigation mitscrollen lassen

0
Sort by reaction | Sort by date
Photo

$(document).ready(function() {
var top = $('.jtpl-navigation').offset().top;
$(window).scroll(function() {
if($(this).scrollTop() > top) {
$('.jtpl-navigation').addClass('fixed');
} else {
$('.jtpl-navigation').removeClass('fixed');
}
});
});
.fixed {position: fixed; top:0; width: 100%; z-index: 9999;}

0 Edit Post

Display archived posts

"Sidebar" Chats

Loading...
Working...