I need to add a class when the user scroll down. I usually do this with jQuery:
$(window).scroll(function() {
var scroll = $(window).scrollTop();
if (scroll >= 10) {
$(".dockbar").addClass("dockbar-opacity");
}
});
How can I do the same thing with AlloyUI? Really thanks.