Hi, I'm new to this group...
I have the code below which removes and adds a class onComplete of a
morph effect, this works fine but only after the second this morph is
used. I mean load the page activate it once and it doesn't work, any
other time after and it does, can anyone tell me why? All replies are
kindly appreciated.
$('openLightbox').addEvent('click', function(e) {
e.stop();
// Changes the element's style to .myClass defined in the CSS
anotherEl.fade('0','1');
var LightboxOpen = new Fx.Morph(anotherEl,{
onComplete: function(){
$$('.content').removeClass('contentHide');
$$('.contentHide').addClass('content');
}
});
LightboxOpen.start('.LightboxOpenClass');
});
c1hundred