I need to make sure that when a particular class is added to a specific block, I add another class to a specific block.
if ($("#block_for_scroll").hasClass("style")) { $('body').addClass("111") }
I thought so, but it does not work. Just the first class is added when scrolling and you need to add another after adding the first class. How to implement it?