Script.aculo.us should have Effect.Emerge
Script.aculo.us includes a nice effect called Effect.DropOut
,
which let’s the element fall in an “invisible trap” underneath. Surprisingly there isn’t an opposite effect.
Calling Effect.DropOut
with Effect.Transitions.reverse
as transition, doesn’t work either. So what to do?
Effect.Emerge
to the rescue!
Effect.Emerge = function(element) {
element = $(element);
var oldStyle = {
top: element