[Moo] Fx.Move

2 messages Options
Embed this post
Permalink
Trevor Orr

[Moo] Fx.Move

Reply Threaded More More options
Print post
Permalink
I am trying to use the Fx.Move to move an image from the off the right side of the browser window to off the left side of the window but it always stops the the edge of the browser window at both top and left edges.  This works fine if I move it from left to right, the image moves past the edge of the window.  Am I missing something here or will it just not move to negative positions?


        var mover = new Fx.Move($('moveObj'), {
            position: 'upperLeft',
            edge: 'upperRight',
            offset: {x: -300, y: 200},
            duration: 5000
        });
        mover.start();




anutron

[Moo] Re: Fx.Move

Reply Threaded More More options
Print post
Permalink
include the option: allowNegative: true

On Thu, Nov 5, 2009 at 8:57 AM, Trevor Orr <[hidden email]> wrote:
I am trying to use the Fx.Move to move an image from the off the right side of the browser window to off the left side of the window but it always stops the the edge of the browser window at both top and left edges.  This works fine if I move it from left to right, the image moves past the edge of the window.  Am I missing something here or will it just not move to negative positions?


        var mover = new Fx.Move($('moveObj'), {
            position: 'upperLeft',
            edge: 'upperRight',
            offset: {x: -300, y: 200},
            duration: 5000
        });
        mover.start();





The MooTools Tutorial: www.mootorial.com Clientcide: www.clientcide.com