while creating the elements you can set the morph properties on them.
var newDiv = new Element('div', {'morph': {'duration': 400}});
for example.
The thing is that you can use any properties that you can use with the 'set'
method as a key on the second parameter of the new Element constructor.
Then you will have to call the method morph on it
newDiv.morph({'height': 100, 'width': 100});
Hope i was clear.
Fábio Miranda Costa
Engenheiro de Computação
http://meiocodigo.com
On Sun, Jul 5, 2009 at 10:20 AM, rutherford <[email protected]> wrote:
>
> Hi
>
> Relatively new to MooTools so apologies if I miss a trick here. I
> have a page in which I need to dynamically (i.e. in javascript) create
> a few tags and add them to the page. When they appear I want to some
> MT fx stuff (morph etc) to happen on them to give it a bit more of an
> entrance.
>
> How can I place mt fx such as Morph etc on these dynamic elements if
> such events need to be declared in the domready event?