Jquery implements an example of a bottom up effect

  • 2020-03-30 04:31:20
  • OfStack

The most common way to do this is to simply use slideUp and slideDown.
If the div you want to expand is positioned through position:absolute, and it's positioned relative to the bottom, like bottom:0px, then slideDown is called up.

(because slideDown basically means that you dynamically change the height of the element, the bottom is fixed, and the height increases as it gets higher.)


 //
 $('.remm_product ul li').hover(
  function(){
   $(this).find('.p_info').slideDown();
  },
  function(){
   $(this).find('.p_info').slideUp();
  }
 )


Related articles: