I have a navigation bar that tells the user which page is selected by a change in text colour and a black background. I want to make only the text inside the current page nav transparent.
Example here: sammarchant.co.uk/new – scroll down to grey area to view
I have researched using CSS3 but no luck, I want to keep load times down to the very minimum hence not wanting to use an image.
This isn’t possible with plain CSS/CSS3.
Even if you did make the text transparent, it wouldn’t appear grey when scrolling over the grey area. If the text was transparent, it would show the black background behind it.
You could however use some javascript to detect what the background is, and change the color of the font depending on this.