Effects
jQuery effects includes transitions and movements
- show and hide elements
- animate elements with fade in and fade out
- animate elements with slide up and slide down
| jQuery method | method meaning | |
|---|---|---|
| Basic Effects | $('selector').show() | set the display CSS property to element's default value |
| $('selector').hide() | set the display CSS property to none |
|
| $('selector').toggle() | toggle between showing and hiding elements | |
| Fading Effects | $('selector').fadeOut() | make element disappear by changing both opacity and display CSS properties |
| $('selector').fadeIn() | make element appear by changing both opacity and display CSS properties |
|
| $('selector').fadeTo() | change the opacity CSS property |
|
| $('selector').fadeToggle() | hide or show the element | |
| Sliding Effects | $('selector').slideUp() | hide the element with sliding movement |
| $('selector').slideDown() | show the element with sliding movement | |
| $('selector').slideToggle() | hide or show the element | |
| Custom Effects | $('selector').delay() | delay the execution of the following method |
| $('selector').stop() | stop the animation | |
| $('selector').animate() | create a custom animation |
