Hello is it possible to rewrite the following JQuery snippet:
$(window).scroll(function (event) {
var scroll = $(window).scrollTop();
$(".navigation").toggleClass("is-active", scroll >= $("example-div").offset().top);
});
$(window).scroll();
Into vanilla JS? I've tried everything, and searched through some other questions, to no avail.
Thanks.