rem: 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); } }) } }); 
add: return 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); } } ) } } ); 
context: Effect.SwitchOff = function(element) {  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);        }      })    }  });}
meta: 3991	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3991/57687341792749db94b850962ee7ed7f18e1087d/effects.js/buggy/manager/media/script/scriptaculous/effects.js