Hello,
I am trying to change the color of the title from Black to White (& fade the intro text) when the title starts entering the blue region and stays there until the user scrolls back up.
But for some reason, the color change happens either earlier or late but never on the border. I tried to get the height of the intro text and then set the start/end value, start position of the blue region etc, but nothing is working.
Can anyone please help and let me know what I am doing wrong.
I can't hardcode pixels as the introduction text below the title can be one line or 10 lines.
Design like this: