Fx Queues 介绍
Introduction
The jQuery Fx Queues plugin is a global queueing system that
allows to enqueue effects of different elements, but also keeps jQuery’s
default
queueing option.
A wait argument was also added to be able to
specify the time to wait before starting the animation.
New arguments added to animate :
- queue: (string) Name of the queue. If it doesn’t exist, it creates the new queue.
- scope: (string) Name of the scope.
- position: (”front”|”end”) Queue position where animation (or scope, if passed) is queued.
- preDelay: (int) Milliseconds to wait before starting the next in queue.
- postDelay: (int) Milliseconds to wait after finishing the animation.
Working with the queues
Now you have a $.fxqueues(”queueName”) to get the queue. The object has
three useful methods:
- $.fxqueues(”queueName”).pause()
- $.fxqueues(”queueName”).start()
- $.fxqueues(”queueName”).stop() (The queue is cleared.)
Fx Queues 官网
http://plugins.jquery.com/project/fxqueues
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。