Text With Neon Light Effect using jQuery & CSS
September 27 2010
Creating a Background Image
First of all we should create an image with the two different color versions of the text, and helped by the jQuery we can create a smooth transition between them. To create the image we’re going to use Photoshop, so we’re creating an empty 650px X 300px document and set #141414 as a hex code for background color.
For the text you can use your favorite font-family, for this example I’ll use Century Gothic with a size of 60px and I’ll type “jQuery & CSS liquid text effect” two times for the heading text.
After this pressing the Ctrl and click the text layer’s icon in the layers panel to select it.
You can choose a different color if you want but these are used for this example.
The final image shold look like this.
The HTML markap is very easy, we are going to use container (in this case h1) to wrap two span elements. The span elements will are having different id’s because they represent the different layers.
>Neon Text Effect With jQuery & CSS.
Layer1 is above the Layer2, and we are going to reduce it’s opacity to get an smooth neon glow effect.
The text is the best type of content for SEO because the crawler can’t read what’s written on the images.
This example is made using negative text-indent on the text but, with my last research i found that negative text event is used by many spammers, and it’s categorized as a “black hat” technique for SEO. So I’ve tried to comment the line for the text-indent and the whole exmple was working again.
And the last step is the jQuery code. We are creating transformational animation between the two layers.
versions = $(
You can download the source here