rem: new Effect.Appear(element, { duration: 0.4, transition: Effect.Transitions.flicker, afterFinish: function(effect) { effect.element.style.overflow = 'hidden'; new Effect.Scale(effect.element, 1, { duration: 0.3, scaleFromCenter: true, scaleX: false, scaleContent: false, afterUpdate: function(effect) { if(effect.element.style.position=="") effect.element.style.position = 'relative'; }, afterFinish: function(effect) { Element.hide(effect.element); } } ) } } ); 
add: element = $(element); var oldOpacity = Element.getInlineOpacity(element); return new Effect.Appear(element, { duration: 0.4, from: 0, transition: Effect.Transitions.flicker, afterFinishInternal: function(effect) { new Effect.Scale(effect.element, 1, { duration: 0.3, scaleFromCenter: true, scaleX: false, scaleContent: false, restoreAfterFinish: true, beforeSetup: function(effect) { Element.makePositioned(effect.element); Element.makeClipping(effect.element); }, afterFinishInternal: function(effect) { Element.hide(effect.element); Element.undoClipping(effect.element); Element.undoPositioned(effect.element); Element.setInlineOpacity(effect.element, oldOpacity); } }) } }); 
context: Effect.SwitchOff = function(element) {  new Effect.Appear(element,    { duration: 0.4,     transition: Effect.Transitions.flicker,     afterFinish: function(effect)      { effect.element.style.overflow = 'hidden';        new Effect.Scale(effect.element, 1,          { duration: 0.3, scaleFromCenter: true,          scaleX: false, scaleContent: false,          afterUpdate: function(effect) {            if(effect.element.style.position=="")             effect.element.style.position = 'relative'; },          afterFinish: function(effect) { Element.hide(effect.element); }         } )      }    } );}
meta: 3283	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3283/9867ca01ad65827d23c0bf6cc14d8a64137e927d/effects.js/buggy/tracks/public/javascripts/effects.js