public
Description: script.aculo.us is an open-source JavaScript framework for visual effects and interface behaviours.
Home | Edit | New

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>
Last edited by joe-loco, Sun May 11 11:30:13 -0700 2008
Home | Edit | New
Versions: