![Ask a Question Ask a Question](/Content/Images/Site/post-type-question.png)
Hello
How set menu and header at top when scrolling ?
actually i put this into additionnal html but I dont know the exact nicepage name for menu header and other
<script type jquery(window).scroll(function() { type jquery(window).scroll(function() { var scroll type jquery(window).scroll(function() { type jquery(window).scroll(function() { var scroll if (scroll jquery(".u-header").addclass("tiny");
type jquery(window).scroll(function() { type jquery(window).scroll(function() { var scroll type jquery(window).scroll(function() { type jquery(window).scroll(function() { var scroll if (scroll jquery(".u-header").addclass("tiny"); jQuery(".u-nav-container").addClass("tiny");
jQuery(".u-logo").addClass("tiny");
jQuery(".sheet").addClass("tiny"); }
if (scroll <= 180) {
jQuery(".u-header").removeClass("tiny");
jQuery(".sheet").removeClass("tiny");
jQuery(".u-nav-container").removeClass("tiny");
jQuery(".u-logo").removeClass("tiny");
} });
</script>
and I put aditionnal CSS rules like :
.u-nav-container.tiny {
position: fixed;
top: 5px; left: 0px;
width: 100%;
transition: all 0.5s ease;
-ms-transform: scale(0.8, 0.8 );
-webkit-transform: scale(0.8, 0.8 );
}
.u-header.tiny {
position:fixed!important;
top: 0; left: 0px; height: 100px;
width:100%;
z-index:500!important;
box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.5);
transition: all 0.5s ease;
}
.sheet .tiny{
margin-top: 180px!important;
}
.u-logo.tiny{
-ms-transform: scale(0.7, 0.7);
-webkit-transform: scale(0.7, 0.7);
transition: all 0.5s ease;}