Jquery Effect

The jQuery library provides several techniques for adding animation to a web page.These include simple, standard animations that are frequently used, and
the ability to craft sophisticated custom effects.


List of jquery effects :

.hide()

.show()

.toggle()

jQuery Slide

jQuery Fade

jQuery Custom Animations

Question for jquery selectors
  1. How do I determine the state of a toggled element ?
  2. Ans :
    You can determine whether an element is collapsed or not by using the :visible and :hidden selectors.
    ex:- var isVisible = $('#myDiv').is(':visible');
    var isHidden = $('#myDiv').is(':hidden');
  3. How you animate the element which is visible ?
  4. Ans :
    $('#myDiv:visible').animate({left: '+=200px'}, 'slow');
After editing Click here:
Output: