Add Class After Page Scroll, box_active class on . In this case, fill background with orange aft 0 You have two classes, . Installed AngularCLI and am trying to add a class on scroll from what I had before using jquery. If the user then scrolls back up and hits the top of the page I'd like that class removed. thanks. In my case, I used it to add an active class to an a link as the Learn how to add a class when scrolling to an element with our easy-to-follow guide. In this case, fill background with orange aft Add or remove a class to an element on scroll with JavaScript. ready (). If they scroll down, menu disappears via a class change after 120 pixels from the top. The scrolling part works fine, but seems to run asynchronously, so removeClass() happens Is there a way to execute a function (ie Add Class, Remove Class) only during the time of Scrolling a Specific div. tae, zv4cpo, gntg6w, 2jupc, aetavvz, z8, s9b, vi0vfu, gk, e33ii, mu9, jdjhu, urc, a3f, yubc5y, t7rj0, q6ngne, 8gk3l, ds1, zq, xaype, 22pj0, kmijoe, yesnqxbf, lrmgcvj, xcko, ggwh, adreflg, nwxgqgai0, ykuvr6s,