Reputation: 39
How to change color of one element using fadeIn(1000) and background of the another element using the same fadeIn(1000) but at the same time?
Upvotes: 0
Views: 34
Reputation: 944
To animate the colors, you also need the jQuery UI plugin to provide color animation.
$('#itemOne').animate({color:'#0ff'}, 1000);
$('#itemTwo').animate({backgroundColor:'#0ff'}, 1000);
For documentation at http://api.jquery.com/animate/ and http://jqueryui.com/animate/
Upvotes: 1
Reputation: 1471
Select them all together and just use one fadein ... Show some code
Upvotes: 1