[jQuery] Animation question

2007-03-15 Thread Daemach
I'm working with the fade and slide animations now, and while testing I've hit a couple of points where an element tried to slideIn when it was already ... in, and fadeOut when it was already...out. In both cases the animation starts from the beginning, fully hiding the element and sliding it in

Re: [jQuery] Animation question

2007-03-15 Thread John Resig
Could you create a ticket for this? Otherwise it's just going to get lost. http://dev.jquery.com/ --John On 3/15/07, Daemach [EMAIL PROTECTED] wrote: I'm working with the fade and slide animations now, and while testing I've hit a couple of points where an element tried to slideIn when it was

Re: [jQuery] Animation question

2007-03-15 Thread John Resig
That is to say that this has been brought up before, but was forgotten again. It seems like a reasonable idea for most of the show/hide animations, but I'm not entirely sure if it's as simple as you make it out to be. Some users may rely upon the current behavior, and changing that will effect

Re: [jQuery] Animation question

2007-03-15 Thread Daemach
Hmm - I'm not sure how or why someone would rely on a hidden element appearing instantaneously and then animating back to its original state. I suppose it's possible, but those have to be rare enough cases that the benefits to new jQuery converts would take precedence. Things like animate,

Re: [jQuery] Animation question

2007-03-15 Thread Daemach
Perfect - if you could just add the same fitering to slideIn, slideOut, fadeIn and fadeOut we're there. I'm glad there is a precedent. Jörn Zaefferer wrote: Daemach schrieb: Hmm - I'm not sure how or why someone would rely on a hidden element appearing instantaneously and then animating

Re: [jQuery] Animation question

2007-03-15 Thread David
Hi Daemach, I came across the same problem and agree that it is counter-intuitive. In the meantime I have implemented a filter on the visibility of the element before calling the function. e.g. $(#myDiv:visible).slideUp(); Regards, David Daemach wrote: I'm working with the fade and

Re: [jQuery] Animation question

2007-03-15 Thread Daemach
What a simple and elegant solution ;) I do hope this will be addressed still to make the library work more intuitively but this saves me from doing an if statement. I love this list... David-310 wrote: Hi Daemach, I came across the same problem and agree that it is counter-intuitive.