css - How to change word color? -
I want to do this so that when the text is loaded in the dome, the text is red randomly, each letter On the first load begins to animate fade / change in blue color. Is it possible only in CSS3 or is it to include JavaScript?
I think it can be done with CSS, it's easy to use jQuery By way: you should and then:
$ (document) .ready (functiom () {// It may be that any event $ ('#your_div_id'). Animate ({Color: 'blue'});}); Your question is not clear, if you want to get random color then create an array of colors and randomly choose a color, this is what I used for my site:
var color = new array ("blue", "green", "#ffffff", "color4", "color5"); Var Rand = Math Floor (monastery.) * 5); and in 'blue' you color [rand]
, make your question a little more common so others can also use it.
Comments
Post a Comment