It's possible to make text looked blurred using just CSS3. See the examples below, just hover over the first bit of text to see the possibility of using blurred text as a hover state.
Some blurred text
Some blurred text
Above, you can see some examples of blurred text in browsers that support CSS3
The trick is to change the colour of the element and either apply the text-shadow or box-shadow properties through CSS. Using the :hover pseudo-class you can create a blurred/unblurred effect
Example:
HTML:
<h1 class="blurred">Blurred text</h1>
CSS:
h1.blurred {
color: #FFF;
}
h1.blurred:hover {
cursor: pointer;
color: #666!important;
text-shadow: 0 0 5px #444;
}
The colours need to be selected carefully, as the shadows are often a bit lighter than the foreground text colour. Shadow size also plays a role. 5px seems to be effective, but 10px can wash the colour out.
To apply the effect to a block element, you'll need to use the box-shadow property instead of the text-shadow property, but otherwise it's the the same.
For more effects, you could apply opacity to make the text a little see through and see how that works out!
If you find this useful, please check out my portfolio site.
This post has the following tags: , blurred, CSS, css3, effects, text
This post was filed under the following categories: Code, Design
First posted: 22nd Dec 2009 @ 15:41
This post has been updated on 12 occassion(s):
Last updated: 22nd Dec 2009 @ 16:10
Further reading...
Here are some articles that you might find interesting.
- IE6 no more. For me at least! - 17% match
- New portfolio is live! - 17% match
- 3 pixel bug (IE6) - 17% match
- Things that no web developer should forget (SEO) - 17% match
- Some 'dirty' hacks for a couple of my 'favourite' browsers! - 17% match
The post Blurred text in CSS by Charanjit Chana is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 2.0 UK: England & Wales License. Permissions beyond the scope of this license may be available by getting in contact with the author.






















