Live data from Hacker News

Finally, CSS based gradient text, no images

labs.dragoninteractive.com

1–10 of 27 posts

Re: Finally, CSS based gradient text, no images

#3
Interesting technique, but it does use JavaScript (but degrades nicely).

A couple of side-effects: Firefox 3.0.8 is pretty sluggish when scrolling (although it might be better with only one instance of this used), also you can't (visibly) select the text that has this applied to it.

Re: Finally, CSS based gradient text, no images

#4
post #3

Interesting technique, but it does use JavaScript (but degrades nicely). A couple of side-effects: Firefox 3.0.8 is pretty sluggish when scrolling (although it might be better with only one instance of this used), also you can't (visibly) select the text that has this applied to it.

Looks good, but I also experienced unbearable sluggishness on Linux/Firefox when scrolling.

Specifically, Xorg and firefox processes use nearly all my CPU when I scroll.

It's unusable in its current form (at least on this system). Hopefully you can tune your code; this is a neat effect.

Re: Finally, CSS based gradient text, no images

#5
Well, that’s horrible for accessibility.

Contrary to popular opinion, assisstive technology for the visually disabled piggybacks onto existing browsers and so gains the full benefits of Javascript. If you’re going to clone your text 52 times over, then your text will be read out 52 times by the browser. Oops.

Re: Finally, CSS based gradient text, no images

#6
This works by duplicating the text, one copy for each pixel of height. The text is then clipped with overflow: hidden. The sluggishness on that page results from a couple hundred (thousand?) copies of the text positioned absolutely and needing to be clipped.

The description is here: http://labs.dragoninteractive.com/rainbows_article.php

Re: Finally, CSS based gradient text, no images

#7
Finally? Forgive me, but I can't really see the need for CSS to pull this off on its own. With gradient text you're not looking to convey information (or at least, no more than the words would convey with any other css-available text effect), you're looking for a visual effect. Something that images handle rather well.

Re: Finally, CSS based gradient text, no images

#8
post #3

Interesting technique, but it does use JavaScript (but degrades nicely). A couple of side-effects: Firefox 3.0.8 is pretty sluggish when scrolling (although it might be better with only one instance of this used), also you can't (visibly) select the text that has this applied to it.

Looks good, but I also experienced unbearable sluggishness on Linux/Firefox when scrolling. Specifically, Xorg and firefox processes use nearly all my CPU when I scroll. It's unusable in its current form (at least on this system). Hopefully you can tune your code; this is a neat effect.

Unusable for me on Linux/firefox too.
Post reply on HN