How can I get jquery to execute animations in exact parallel?

前端 未结 7 1939
梦谈多话
梦谈多话 2020-12-09 00:30

I\'m trying to create an accordion widget in jquery similar to jquery\'s accordion plugin, with the difference that I want the handles to appear below their respective conte

7条回答
  •  眼角桃花
    2020-12-09 00:48

    You can't do a parallel effect in jquery with proper queue and scope. Scriptaculous got it right with queue and scope where jQuery on the other hand has .queue and .animate that are basically useless combined. The only thing jQuery is good for out of the box is pushing some style attributes around on the dom whereas Scriptaculous covers the whole spectrum of what's possible with effects.

    You need to use Scriptaculous and John Resig should rethink jQuery.fx, he should have a look at scripty2.com while he's at it.

提交回复
热议问题