Looks like we won't need to do this after all :)

On 8/19/07, Cybolic <[EMAIL PROTECTED]> wrote:
>
>
> You're absolutely correct John, it does not stop animation, thanks for
> clearing that up.
> I'm sorry for misleading you guys, I should have tested my claim more
> thoroughly.
>
> To try and make up for my mistake, I've packaged John's new code into
> a plugin and added a skip function that skips the current animation
> (and goes to the next in queue).
>
> You can find it here:
>
>   demo:
>   http://untied.dk/jquery/stop/index.html
>
>   plugin:
>   http://untied.dk/jquery/stop/jquery.animstop.js
>
> Sorry for the confusion.
>
> - Christian Dannie Storgaard
>
> P.S. I haven't added the full new effect code from John's latest
> version, just the stuff needed to make stop work, so there may be
> something that doesn't work, but I haven't found anything so far.
>
> On Aug 19, 6:36 am, "Ganeshji Marwaha" <[EMAIL PROTECTED]> wrote:
> > John, i now completely get what u mean... This is actually not stopping
> > animation ;-).
> >
> > :-( we will wait for jquery 1.2 in the meantime... Thanks for letting us
> > know.
> >
> > -GTG
> >
> > On 8/18/07, Ganeshji Marwaha <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > > Ok, there is no way i can oppose that. You are an authority in what u
> r
> > > talking about and i comletely agree with u. I also understand exactly
> what u
> > > mean when u say that...
> >
> > > That said, the interesting part is, in the case of my lavalamp plugin
> > >http://www.gmarwaha.com/jquery/lavalamp/test/test.html, this code seems
> > > to solve the problem that could be solved by stopping animations in
> the
> > > middle. I don't understand how this works then. I willd be glad if you
> can
> > > explain that please.
> >
> > > -GTG
> >
> > >  On 8/18/07, John Resig <[EMAIL PROTECTED]> wrote:
> >
> > > > That code doesn't work - it doesn't stop any animations, it only
> > > > clears the animation queue (stopping any future queued animations).
> >
> > > > You can't build a true stop animation without modifying jQuery core.
> > > > Here's a page that demonstrates that code that's going into jQuery
> > > > 1.2:
> > > >http://dev.jquery.com/~john/ticket/stop/
> >
> > > > --John
> >
> > > > On 8/17/07, Cybolic <[EMAIL PROTECTED]> wrote:
> >
> > > > > You can start and stop an animation like so:
> >
> > > > > // start
> > > > > $('#animationElement').animate({width: 50}, slow);
> >
> > > > > // stop
> > > > > $.dequeue($('#animationElement').get(0), "fx");
> >
> > > > > You can of course define a helper for it like so:
> >
> > > > > $.fn.stop = function(){
> > > > >     this.each(function(){
> > > > >         $.dequeue(this, "fx");
> > > > >     });
> > > > >     return this;
> > > > > };
> >
> > > > >  - now you can just do: $('#animationElement').stop();
> >
> > > > > This should really be added to the documentation, or given a
> shortcut.
> > > > > If anyone would do this, or tell me how to do it, that'd be great.
> >
> > > > > Cheers,
> > > > > Christian Dannie
> >
> > > > > On Aug 4, 6:40 am, "Ganeshji Marwaha" <[EMAIL PROTECTED]>
> wrote:
> > > > > > hi friends,
> >
> > > > > > is there a way to stop an animation after it has started? any
> hack
> > > > that will
> > > > > > make this happen will be useful...
> >
> > > > > > thanks in advance,
> > > > > > -GTG
>
>


-- 
Joan Piedra  ||  Frontend web developer
http://www.justaquit.com/  ||  http://www.joanpiedra.com/

Reply via email to