| 385 | | <p>A switch-off like effect, making the element disappear.</p> |
|---|
| 386 | | <dl class="docutils"> |
|---|
| 387 | | <dt>element:</dt> |
|---|
| 388 | | <dd>An element ID string or a DOM node (see |
|---|
| 389 | | <a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd> |
|---|
| | 385 | <p>A switch-off like effect, making the <tt class="docutils literal"><span class="pre">element</span></tt> disappear, using |
|---|
| | 386 | the <a class="mochiref reference" href="#fn-opacity">Opacity</a> and <a class="mochiref reference" href="#fn-scale">Scale</a> effects in sequence. |
|---|
| | 387 | The initial <a class="mochiref reference" href="#fn-opacity">Opacity</a> effect uses a flicker (partially |
|---|
| | 388 | random) transformation. Once the effect has completed, the |
|---|
| | 389 | <tt class="docutils literal"><span class="pre">element</span></tt> will be hidden with |
|---|
| | 390 | <a class="mochiref reference" href="Style.html#fn-hideelement">MochiKit.Style.hideElement</a> and the original element |
|---|
| | 391 | opacity, size and position will be restored.</p> |
|---|
| | 392 | <dl class="docutils"> |
|---|
| | 393 | <dt>element:</dt> |
|---|
| | 394 | <dd>An element ID string or a DOM node (see |
|---|
| | 395 | <a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd> |
|---|
| | 396 | <dt>options:</dt> |
|---|
| | 397 | <dd>See <a class="mochiref reference" href="#fn-defaultoptions">DefaultOptions</a>. Note that the options will |
|---|
| | 398 | only affect the secondary <a class="mochiref reference" href="#fn-scale">Scale</a> effect.</dd> |
|---|
| 398 | | <p>Make the element fall and fade.</p> |
|---|
| 399 | | <dl class="docutils"> |
|---|
| 400 | | <dt>element:</dt> |
|---|
| 401 | | <dd>An element ID string or a DOM node (see |
|---|
| 402 | | <a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd> |
|---|
| 403 | | <dt>options:</dt> |
|---|
| 404 | | <dd><table border="1" class="first last docutils"> |
|---|
| | 407 | <p>Make the element fall and fade using the |
|---|
| | 408 | <a class="mochiref reference" href="#fn-move">Move</a> and <a class="mochiref reference" href="#fn-opacity">Opacity</a> effects in parallel. |
|---|
| | 409 | Once the effect has completed, the <tt class="docutils literal"><span class="pre">element</span></tt> will be hidden with |
|---|
| | 410 | <a class="mochiref reference" href="Style.html#fn-hideelement">MochiKit.Style.hideElement</a> and the original element |
|---|
| | 411 | position and opacity will be restored.</p> |
|---|
| | 412 | <dl class="docutils"> |
|---|
| | 413 | <dt>element:</dt> |
|---|
| | 414 | <dd>An element ID string or a DOM node (see |
|---|
| | 415 | <a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd> |
|---|
| | 416 | <dt>options:</dt> |
|---|
| | 417 | <dd><p class="first">The <tt class="docutils literal"><span class="pre">distance</span></tt> option controls the number of pixels that the |
|---|
| | 418 | element will move downwards. See also the |
|---|
| | 419 | <a class="mochiref reference" href="#fn-defaultoptions">DefaultOptions</a>.</p> |
|---|
| | 420 | <table border="1" class="last docutils"> |
|---|
| 424 | | <p>Shake an element from left to right.</p> |
|---|
| 425 | | <dl class="docutils"> |
|---|
| 426 | | <dt>element:</dt> |
|---|
| 427 | | <dd>An element ID string or a DOM node (see |
|---|
| 428 | | <a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd> |
|---|
| | 440 | <p>Shake an element from left to right using a sequence of six |
|---|
| | 441 | <a class="mochiref reference" href="#fn-move">Move</a> effects. Once the effect has completed, the |
|---|
| | 442 | original <tt class="docutils literal"><span class="pre">element</span></tt> position will be restored.</p> |
|---|
| | 443 | <dl class="docutils"> |
|---|
| | 444 | <dt>element:</dt> |
|---|
| | 445 | <dd>An element ID string or a DOM node (see |
|---|
| | 446 | <a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd> |
|---|
| | 447 | <dt>options:</dt> |
|---|
| | 448 | <dd>See <a class="mochiref reference" href="#fn-defaultoptions">DefaultOptions</a>. Note that the options will |
|---|
| | 449 | only affect the last <a class="mochiref reference" href="#fn-move">Move</a> effect.</dd> |
|---|
| 475 | | <p>Reduce the horizontal and vertical sizes at the same time, using |
|---|
| 476 | | the top left corner.</p> |
|---|
| 477 | | <dl class="docutils"> |
|---|
| 478 | | <dt>element:</dt> |
|---|
| 479 | | <dd>An element ID string or a DOM node (see |
|---|
| 480 | | <a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd> |
|---|
| | 496 | <p>Reduce the horizontal and vertical sizes at the same time using |
|---|
| | 497 | a single <a class="mochiref reference" href="#fn-scale">Scale</a> effect. The result is similar to the |
|---|
| | 498 | <a class="mochiref reference" href="#fn-shrink">shrink</a> effect with a <tt class="docutils literal"><span class="pre">top-left</span></tt> value for the |
|---|
| | 499 | <tt class="docutils literal"><span class="pre">direction</span></tt> option. The <tt class="docutils literal"><span class="pre">element</span></tt> should have fixed width and |
|---|
| | 500 | height. Once the effect has completed, the <tt class="docutils literal"><span class="pre">element</span></tt> will be |
|---|
| | 501 | hidden with <a class="mochiref reference" href="Style.html#fn-hideelement">MochiKit.Style.hideElement</a> and the |
|---|
| | 502 | original element size will be restored.</p> |
|---|
| | 503 | <dl class="docutils"> |
|---|
| | 504 | <dt>element:</dt> |
|---|
| | 505 | <dd>An element ID string or a DOM node (see |
|---|
| | 506 | <a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd> |
|---|
| | 507 | <dt>options:</dt> |
|---|
| | 508 | <dd>See <a class="mochiref reference" href="#fn-defaultoptions">DefaultOptions</a>.</dd> |
|---|