2079 8

CSC329 ยท 2079 ยท 5 marks

Describe the jQuery Animate() method. Write an html script to create a div with id 'mydiv'. The position of the div should be set to absolute. Now show the use of animate method to the div element to right by 300px.

Describe the jQuery Animate() method. Write an html script to create a div with id 'mydiv'. The position of the div should be set to absolute. Now show the use of animate method to the div element to right by 300px. [5]

Web TechnologyChapter 4: Client Side Scripting with JavaScriptEvents and Effects

The jQuery animate() method is used to create custom animations on HTML elements by gradually changing CSS properties from one value to another. Syntax: Parameters: - {parameters} - Specifies the CSS properties to be animated (required) - speed - Optional. Specifies the duration: "slow", "fast", ...