+ div.observe('webkitTransitionEnd', handler).observe('transitionend', handler) .observe('oTransitionend', handler);
+ div.setStyle({'transitionProperty': 'opacity',
+ 'MozTransitionProperty': 'opacity',
+ 'WebkitTransitionProperty': 'opacity',
+ 'OTransitionProperty': 'opacity',
+ 'transitionDuration': '1ms',
+ 'MozTransitionDuration': '1ms',
+ 'WebkitTransitionDuration': '1ms',
+ 'OTransitionDuration': '1ms'});
+ $(document.documentElement).insert(div);
+ Element.setOpacity.defer(div, 0);
+ window.setTimeout(cleanup, 100);
+ }