So what you really want is a "speed" property..in pps (pixels per second) instead of a "duration" ?
_____ From: anutron [mailto:[email protected]] Sent: Friday, 10 July 2009 10:07 AM To: [email protected] Subject: [Moo] Re: Tween two different elements at the same speed This kinda sucks because with MooTools 2.0 this would be easier (or at least work better) because all animations share the same timer. The only way to do this is to have two instances of Fx.Tween or Fx.Morph and to set their durations relative to their sizes. So if one is going to 50px and the other to 100px, you'd set the duration for the second one to be twice as long as the first. This may not run smoothly in MooTools 1.* On Thu, Jul 9, 2009 at 4:38 PM, 4fingers (via Nabble) <ml-user%2b201837-1000811...@... <http://n2.nabble.com/user/SendEmail.jtp?type=node&node=3234893&i=0> > wrote: Hi, I am wanting to find out if there is a way to tween two elements at the same speed given that they are different sizes. Since the speed depends on the size of the tween I am finding it hard to have one element tween from 0px to 100px then on completion have another element tween from 0px to 50px at the same speed. Is there any other way I can control the speed of the tween apart from simply giving it a duration. If not the only idea I have is to set up some algorithm that given the size and speed for one element I could maybe determine the speed required for another element given its size. I am not even sure if that algorithm is possible so any ideas would be great. Thanks The MooTools Tutorial: www.mootorial.com Clientcide: www.clientcide.com _____ View this message in context: Re: <http://n2.nabble.com/-Moo--Tween-two-different-elements-at-the-same-speed-t p3234782p3234893.html> [Moo] Tween two different elements at the same speed Sent from the MooTools Users mailing <http://n2.nabble.com/MooTools-Users-f660466.html> list archive at Nabble.com.
