jquery - Applying .fadeIn() and .animate() at the same time -
with code, related image not create de fadein effect , animation @ same time. firts fades, , when has finished, applyes animation. need them done ant same time:
$('.b4').fadein(2000); $('.b4').animate({'right': '400px'}, 5000);
other options i've tried without effect:
$('.b4').fadein(2000).animate({'right': '400px'}, 5000); $('.b4').animate({'right': '400px'}, 5000).fadein(2000);
try utilize queue
of fadein :http://jsfiddle.net/h4e4cb80/
$('.b4').fadein({queue: false, duration: 2000}); $('.b4').animate({'right': '400px'}, 5000);
queue : boolean indicating whether place animation in effects queue. if false, animation begin immediately
http://api.jquery.com/fadein/
jquery
No comments:
Post a Comment