$(window).on("scroll", function (e) { oVal = $(window).scrollTop() / 170; $(".blur").css("opacity", oVal); }); $("#motto").fitText();