Hello,
I'm trying to do something like this, only on WordPress.
With the code from the topic above I managed to control the accordion on scroll. But there is a problem, when accordion changes, active accordions color should change too.
Active accordions class should be added to the different selector than target class that used for controlling the accordion.
When I add an active accordion class with toggleClass, whole accordions color is changing.
How can I do that?