Scale effect using Jquery UI
Here we have given "scale " as effect. All other parameters are optionaldirection: (Optional) Direction of the effect: 'vertical' , 'horizontal', 'both' . Default value is 'both'
origin: (Optional) The end or vanishing point as array ['middle','center']
percent: (Optional) The percent to scale to in number
scale: (Optional) It is the box or the content inside, which is to be resized. Value : 'both', 'box', 'content'
callback function: (Optional) We can use a callback function to execute once the scale 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 percent to manage percentage it scale to
Similarly we can add direction
WE can add callback function to this, the function will display an alert window with message once the scale 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 |