Effect.Fold

Combination Effects > Effect.Fold

Reduce the element to its top then to left to make it disappear.

Examples


Effect.Fold('id_of_element');

Notes

Works safely with most Block Elements, except tables.

Demo

Source code of this demo


<div id="fold_demo" style="width:80px; height:80px; background:#ccc;"></div>
<ul>
  <li><a href="#" onclick="Effect.Fold('fold_demo'); return false;">Click me for a demo!</a></li>
  <li><a href="#" onclick="$('fold_demo').show(); return false;">Reset</a></li>
</ul>