Nov 8, 2018

Common ways to animate HTML elements


  1. The .slideDown() method shows the selected HTML element by sliding it down.
  2. The .slideUp() method hides the selected HTML element by sliding it up.
  3. The .fadeIn() method shows the selected HTML element by fading it in.
  4. The .fadeOut() method hides the selected HTML element by fading it out.
  5. The .animate() method lets you create your own custom animations. HTML elements can be animated by specifying the CSS properties to change to over a time duration.