jQuery: The Write Less, Do More JavaScript Library

Clear queued effects

View: New views
2 Messages — Rating Filter:   Alert me  

Clear queued effects

by caroig :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


I've mean messing with hover effects and one of the problems I can't
resolve is the queueing of events/effects.
What I'd like to do is to remove all effects from the queue once a new
effect event has been triggered.

Is this possible with a combination of the animate and stop
functions?   What I'd really like is just be able to remove all queued
events for a selected object.

You can see the problem I have at http://67.199.18.208/


Re: Clear queued effects

by Ariel Flesler :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


$(element).queue( 'fx', [ ] ).stop();

Can be reduced to

$(element).queue( [ ] ).stop();

--
Ariel Flesler
http://flesler.blogspot.com

On 4 jul, 08:32, caroig <camposdeni...@...> wrote:

> I've mean messing with hover effects and one of the problems I can't
> resolve is the queueing of events/effects.
> What I'd like to do is to remove all effects from the queue once a new
> effect event has been triggered.
>
> Is this possible with a combination of the animate and stop
> functions?   What I'd really like is just be able to remove all queued
> events for a selected object.
>
> You can see the problem I have athttp://67.199.18.208/
LightInTheBox - Buy quality products at wholesale price