James Priceless
James Priceless

Reputation: 39

Change multiple elements using fadeIn(1000) but without waiting for another element to end fading

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

Answers (2)

Nick Caballero
Nick Caballero

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

sergioadh
sergioadh

Reputation: 1471

Select them all together and just use one fadein ... Show some code

Upvotes: 1

Related Questions