jQuery Effects - Animation The jQuery animate() method lets yous exercise custom animations. jQuery jQuery Animations - The animate() Method The jQuery animate() method is used to exercise custom animations. Syntax: $( selector ).animate({ params } ,speed,callback ); The required params parameter defines the CSS properties to survive animated. The optional speed parameter specifies the duration of the effect. It tin accept the next values: "slow", "fast", or milliseconds. The optional callback parameter is a role to survive executed later the animation completes. The next instance demonstrates a uncomplicated exercise of the animate() method; it moves a <div> chemical part to the right, until it has reached a left belongings of 250px: Example $( "button" ). click ( function (){ $( "div" ). animate ({left: '250px' }); }); By default, all HTML elements cause got a static position, ...
Comments
Post a Comment