Slide effect using Jquery UI
Here we have given "slide " as effect. All other parameters are optionaldistance: (Optional) Distance in pixel the element has to travel , default value is 20
direction (Optional) It can take these values
'left' 'right' 'up' 'down' callback function: (Optional) We can use a callback function to execute once the slide effect is over
speed (Optional) It can take these values
'fast' 'slow' time in millseconds
Usually it is connected to Click event of a button, here button id is b1
We can add optional parameter direction to manage up , down , left or right movment effect.
Similarly we can add distance in pixels
WE can add callback function to this, the function will display an alert window with message once the slide effect is over.
Here is the code with all optional values
This article is written by plus2net.com team.
|
Most Popular JQuery Scripts | |
1 | Two dependant list boxes |
2 | Calendar with Date Selection |
3 | Data change by Slider |
4 | Show & Hide element |