mercredi 25 mars 2015

How can you add multiple text shadows for one piece of text in one jquery ".css()"


I'm trying to animate the title of a page on my site, I have made the text 3D with multiple shadows, and I want to change what colour it is on page load.


This is what I have currently:



//Animates section 1 of mainpage title
function tsec1Anim(){
$("#tsec1").css({
"font-family" : "Lucida Console",
"font-weight" : "bold",
"text-align" : "center",
"margin-bottom" : "12px",
"top" : "0px",
"color" : "#0033cc",
"font-size" : "75px",
"text-shadow" : "0px 1px 0px #002eb8",
"text-shadow" : "0px 2px 0px #0029a3",
"text-shadow" : "0px 3px 0px #00248f",
"text-shadow" : "0px 4px 0px #001f7a",
"text-shadow" : "0 5px 0 #001a66",
"text-shadow" : "0 6px 1px rgba(0,0,0,.1)",
"text-shadow" : "0 0 5px rgba(0,0,0,.1)",
"text-shadow" : "0 1px 3px rgba(0,0,0,.4)",
"text-shadow" : "0 3px 5px rgba(0,0,0,.50)",
"text-shadow" : "0 5px 10px rgba(0,0,0,.80)",
"text-shadow" : "0 10px 10px rgba(0,0,0,.60)",
"text-shadow" : "0 20px 20px rgba(0,0,0,.75)",
"margin-top" : "15px"
});
}




Aucun commentaire:

Enregistrer un commentaire