I have a% div of%, that when it hits 31px it stays with .menuFixo
, otherwise, top: 0
, did with Jquery, but did not work. >
$(window).scroll(function () {
if ($(window).scrollTop() > 31) {
$(".menuFixo").css("top", "0");
};
else if ($(window).scrollTop() < 31) {
$(".menuFixo").css("top", "31px");
};
});