I think you might need to use the 'unit' option in the Fx.Morph
constructor http://mootools.net/docs/Fx/Fx#Fx:constructor . I forget
about this option all the time, and typically it takes me ages to
remember to figure out why my Morphs are the wrong size!

Michal.

On Dec 31 2008, 6:50 pm, rpflo <[email protected]> wrote:
> I just tested morphing to another css class and it doesn't seem to
> work like I expect it to either, the css says em but it morphs to
> pixels.
>
> It does work, however, if you define it like I mentioned before.
>
> On Dec 31, 11:44 am, rpflo <[email protected]> wrote:
>
> > This works:
>
> > $('dopeSauce').morph({font-size : '10em'});
>
> > Haven't tested it with morphing to a css class, however.
>
> > On Dec 31, 10:33 am, Jacob <[email protected]> wrote:
>
> > > I have a morph instance that is using a classname, so it looks like
>
> > > h1.morph('h1.loading')
>
> > > and h1.loading has the rule {font-size:1.75em}
>
> > > Mootools morphs this instead to {font-size:2px}. The same problem but
> > > inversed happens if I use a percentage for font size. If I used a hard
> > > pixel value {fonts-size:24px} it works just fine.
>
> > > Does Mootools understand EMs and %s as relative measurements?
>
> > > Thanks
> > > J

Reply via email to