Is it possible to run two animations on two different elements simultaneously?(是否可以同时在两个不同的元素上运行两个动画?)
$('#first').animate({ width: 200 }, 200); $('#second').animate({ width: 600 }, 200);
setTimeout
yes there is!(就在这里!)
$(function () { $("#first").animate({ width: '200px' }, { duration: 200, queue: false }); $("#second").animate({ width: '600px' }, { duration: 200, queue: false }); });
1.4m articles
1.4m replys
5 comments
57.0k users