i want it to log small if both requirement are met, but i cant get it to work
//change css on scroll
$(window).scroll(function () {
var scroll = $(window).scrollTop();
var Wwidth = $(window).width();
if ((scroll <= 550) && (Wwidth <= 550)) {
console.log(small);
} else {
console.log(big);
}
});
Aucun commentaire:
Enregistrer un commentaire