If you're running the two effects next to each other like that in the
code, the behavior describing makes sense, and the effects are
triggered asynchronously.

There are two ways to accomplish a synchronous chain:
* Effect queues (my preference)
** http://madrobby.github.com/scriptaculous/effect-queues/
** http://www.google.com/search?&q=scriptaculous+queue+effects&ie=UTF-8&oe=UTF-8

* Using the afterFinish callback, which fires, not surprisingly, after
the effect in question finishes.
** http://madrobby.github.com/scriptaculous/core-effects/


TAG

On Oct 16, 9:56 am, Annatar <[email protected]> wrote:
> Hi, i am trying to scale up an HTML element, after scaling it down
> with Effect.Scale. The problem is that this is animated ONLY on scale
> down. when scaling up, the resize is produced instantly, without any
> animation, while scaling down occurs at it should.
> So roughly the steps would be:
>
> // shrinking myElement to 0 height
> new Effect.Scale(myElement, 0, {duration:0.2, scaleX:false,
> scaleContent:false} );
> //restoring myElement to original size
> new Effect.Scale(myElement, 100, {duration:0.2, scaleX:false,
> scaleContent:false, scaleMode:{originalHeight:200} } );
>
> Does anyone have any idea why the scaling up animation does not occur?
>
> Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.

Reply via email to