your going to have to create a toggle button workaround, since the
toggle function apparently does not exist within this Fx.
example (suggested... not tested):
var el = $('el');
var el_class = el.getProperty('class');
$('link').addEvent('click', function(e) {
e.stop();
if (el_class == 'classA')
el.set('class', 'classB');
else if (el_class == 'classB')
el.set('class', 'classA');
});
On Nov 16, 12:09 pm, ashleyward <[EMAIL PROTECTED]> wrote:
> I am quite new to mootools and js, so excuse my somewhat basic
> question.
>
> I am using the CSS class morph function, and looking in the demos page
> for this function, we can see that there is:
>
> 1. a link which morphs a div from class A --> class B,
>
> 2. next to this there is a link which morphs the div back from class
> B ---> class A
>
> I am trying to produce a situation in which a single link will morph a
> div from class A to class B, then when clicked on a second time, the
> div will morph from class B back to class A.
>
> Thanks for your help!
>
> Ash