<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script>
$(window).on('load scroll', headerFixed);
function headerFixed() {
var scrollTop = $(window).scrollTop();
if (scrollTop > 130) {
$(".menu").addClass('fixed');
}else{
$(".menu").removeClass('fixed');
}
}
</script>
Hiç yorum yok:
Yorum Gönder