Effect.SwitchOff

Combination Effects > Effect.SwitchOff

Gives the illusion of a TV-style switch off.

Examples


Effect.SwitchOff('id_of_element');

Notes

Works safely with most Block Elements, except tables.

Demo

Source code of this demo


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