Hi,
I take a look at your code and i've got an error with the yui compressor

final is a keyword and should not be used as var name (declared around line
115)


about creating a new Fx.morph, I don't know whether this solution is better



var elt = direction == 'next' ? current : next;
elt.set('morph', { link:'chain', duration: (this.options.speed / 2).toInt(),
link: 'chain' }).morph({
'margin-top': out[0],
'margin-left': out[1]
}).morph({
'margin-top': final[0],
'margin-left': final[1]
});

- cheers.


On Fri, Feb 13, 2009 at 6:24 PM, ryan <[email protected]> wrote:

>
> that rocks - very very nice work
>
> On Feb 13, 3:54 pm, MartinodF <[email protected]> wrote:
> > cheeaun wrote:
> >
> > > Uh, every time the stack is swapped, a new Fx.Morph instance is
> > > created?
> >
> > That's why I say this is not quality code.
> > I'm looking into some optimization, cheeaun if you can help, it would be
> > appreciated!
> >
> > Updated, now tested and working in chrome 1.0.154, ff 3.0.6, opera 9.62,
> > safari 3.2.1, ie8b2, ie7, ie6 (apart from the transparent PNGs used in
> the
> > demo obviously)
> > --
> > View this message in context:
> http://n2.nabble.com/-v0.1--mooStack-slider-tp2321635p2321929.html
> > Sent from the MooTools Users mailing list archive at Nabble.com.
>



-- 
fax : (+33) 08 26 51 94 51

Reply via email to