Web Design

Awesome Rainbow Effect With CSS3

CSS3 is the most discussed topic since long time. Today I was surfing and found a very Cool effect achieved by the CSS3.

This the trick of the CSS3 gradient effect but with the little bit of tweak is creating a very cool effect.

I am giving the code explaination for this.

HTML:

[cc lang=”html4strict”]

This is the Rainbow Effect using CSS3.
Is that COOL?

[/cc]

CSS:

[cc lang=”css”]
.rainbow
{
font-size:36px;
cursor:pointer;
}

.rainbow:hover
{
-webkit-background-clip: text;
color: white;
-webkit-text-fill-color: transparent;
background-color:#FFF;
background-image:
-webkit-gradient(linear,left top,right top,from(#ea8711), to(#d96363));
background-image:
-webkit-linear-gradient(left,#ea8711,#d96363,#73a6df,#9085fb,#52ca79);
background-image:
-moz-linear-gradient(left,#ea8711,#d96363,#73a6df,#9085fb,#52ca79);
background-image:
-ms-linear-gradient(left,#ea8711,#d96363,#73a6df,#9085fb,#52ca79);
background-image:
-o-linear-gradient(left,#ea8711,#d96363,#73a6df,#9085fb,#52ca79);
}
[/cc]

Demo:

This is the Rainbow Effect using CSS3. Is that COOL?

Note: As far as I checked this is working only on Chrome.

Hence this is working only for chrome, hopefully this will be supported to all major browsers in very short future.

Shares:
  • Mickael
    Mickael
    August 26, 2011 at 2:01 pm

    Hi,

    it’s working on firefox aurora.

    Regards,

    Mickael

    Reply
  • Pedro Rio
    August 26, 2011 at 7:02 pm

    Hi,

    Opera 11 seems to display the gradient as well ;)

    Nice trick

    Reply
    • Avinash
      August 26, 2011 at 7:05 pm

      Yes But it shows gradient in whole text background rather than on text. Is that true?

      Reply
  • falguni
    August 27, 2011 at 10:40 am

    yeah! nice effect,
    but how to apply this effect for text not a background ?

    Reply
    • Avinash
      August 27, 2011 at 2:34 pm

      It will apply to text in Chrome and for other browser it will show effect in Background..

      Reply
  • […] HTML | 0 comments Here we comes with another CSS3 tips and tricks. Earlier we have posted about the CSS3 Rainbow Effect. In this tutorial we will create pulse effect using CSS 3 property only.I am going to create this […]

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *