Hi @callmevlad - nice to see ya!
Just looking back at your original query @LHM - you say you are trying to achieve this on your navigation bar? There is of course the ‘current’ state of nav links if those are elements you are referring to?
So if the element scrolling into view was actually a section (with an ID) you could have the ‘nav links’ background and text colour change when the section becomes current, and back to original when another section becomes current. Each nav item could have it’s own colours too.
That’s not using IX1 or IX2, and I’m guessing it’s not quite what you are after - but thought I would throw it in just in case!