Is it possible to create multiple text shadows for a single piece of text using the jQuery ".css()
" method?
I'm currently working on animating the title of a page on my website, which includes adding a 3D effect with multiple shadows. I also want to change the color of the text when the page loads.
This is my current code snippet:
// Function to animate section 1 of the main page 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, 0px 2px 0px #0029a3, 0px 3px 0px #00248f, 0px 4px 0px #001f7a, 0 5px 0 #001a66, 0 6px 1px rgba(0,0,0,.1), 0 0 5px rgba(0,0,0,.1), 0 1px 3px rgba(0,0,0,.4), 0 3px 5px rgba(0,0,0,.50), 0 5px 10px rgba(0,0,0,.80), 0 10px 10px rgba(0,0,0,.60), 0 20px 20px rgba(0,0,0,.75)",
"margin-top" : "15px"
});
}