css text gradient

Spread the love

Question Description

I’ve had alittle look around and can’t find anything about this.

If i have a paragraph of text, is there a way, maybe with CSS3 to gradually change the colour of the text as it goes down to the page? instead of the way that gradient does it, because that only does it on the word not the whole paragraph of text.

So i want some text to start off white and then fade into black as it gets to the end of the paragraph.

I’m really not sure it can be done… Maybe there is a java script that can do it.

Thanks.

Practice As Follows

You can do it using CSS but it will only work in webkit browsers (Chrome and Safari): http://jsfiddle.net/joshnh/DphXz/

Leave a Comment