Part-6 Prac 1: Implement following tasks using jQuery
Sliding page elements:
With jQuery you can create a sliding effect on elements. jQuery has the following slide methods:
slidedown()
slideup()
slidetoggle()
Hiding and Showing elements:
With jQuery, you can hide and show HTML elements with the hide() and show() methods:
The optional speed parameter specifies the speed of the hiding/showing, and can take the following values: "slow", "fast", or milliseconds.
The optional callback parameter is a function to be executed after the hide() or show() method completes (you will learn more about callback functions in a later chapter).
Fading elements:
The jQuery fadeIn() method is used to fade in a hidden element.
The optional speed parameter specifies the duration of the effect. It can take the following values: "slow", "fast", or milliseconds.
The optional callback parameter is a function to be executed after the fading completes.
Toggling elements:
The jQuery slideToggle() method toggles between the slideDown() and slideup() methods.If the elements have been slid down,slideToggle() will slide them up.If the elements have been slid up,slideToggle() will slide them down.
Stopping effects:
he jQuery stop() method is used to stop an animation or effect before it is finished.The stop() method works for all jQuery effect functions, including sliding, fading and custom animations.
With jQuery you can create a sliding effect on elements. jQuery has the following slide methods:
slidedown()
slideup()
slidetoggle()
Hiding and Showing elements:
With jQuery, you can hide and show HTML elements with the hide() and show() methods:
The optional speed parameter specifies the speed of the hiding/showing, and can take the following values: "slow", "fast", or milliseconds.
The optional callback parameter is a function to be executed after the hide() or show() method completes (you will learn more about callback functions in a later chapter).
Fading elements:
The jQuery fadeIn() method is used to fade in a hidden element.
The optional speed parameter specifies the duration of the effect. It can take the following values: "slow", "fast", or milliseconds.
The optional callback parameter is a function to be executed after the fading completes.
Toggling elements:
The jQuery slideToggle() method toggles between the slideDown() and slideup() methods.If the elements have been slid down,slideToggle() will slide them up.If the elements have been slid up,slideToggle() will slide them down.
Stopping effects:
he jQuery stop() method is used to stop an animation or effect before it is finished.The stop() method works for all jQuery effect functions, including sliding, fading and custom animations.
Name: Naisarg Modi
ID : 18CE055
Comments
Post a Comment