Changing text colour

I can’t seem to do this effect for some reason. If you go to when the red thing goes over the menu links (which are grey color), the links turn white with the red bar over it so you can see the text easier. How did he do this effect. It won’t change for me, or it’s a pain.