The Shake effect simulates rapidly shaking the target element 20 pixels from left to right.
You can only attach this effect to the following HTML elements: address, blockquote, dd, div, dl, dt, fieldset, form, h1, h2, h3, h4, h5, h6, iframe, img, object, p, ol, ul, li, applet, dir, hr, menu, pre, or table.
Shake effect optionsThe following table lists available options for the Shake effect.
|
Option |
Description |
|---|---|
|
duration |
Fixed at 500 milliseconds in Spry 1.4. Only editable in Spry 1.5 and later. |
|
setup |
Lets you define a function that is called before the effect begins, e.g., setup:function (element,effect){/* ... */}. |
|
finish |
Lets you define a function that is called after the effect finishes, e.g., finish:function (element,effect){/* ... */}. |
Sample code:
Spry.Effect.DoShake('targetID');
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/en_US/Spry/1.4/WSE756B98C-097C-44ae-A5A8-131FE0A2C442.html
Comments
Comments are no longer accepted for Spry 1.4. Spry 1.6 is the current version. To discuss Spry 1.4, please use the Adobe forum.