开发者

Question about jquery slideDown

开发者 https://www.devze.com 2023-03-11 00:00 出处:网络
I have a div with hight 300px I want to use slideD开发者_StackOverflow社区own or any of jquery methods to slide down a part of the div not all the 300px

I have a div with hight 300px I want to use slideD开发者_StackOverflow社区own or any of jquery methods to slide down a part of the div not all the 300px may be just 50px


Try this DEMO

$('#clickme').click(function() {
  $('#book').animate({
      top: '+=50',
      height: '-=50'
  }, 1000, function() {
      // callback on complete.
  });
});


$("#your_div").scrollTop(50)

isn't it right?

0

精彩评论

暂无评论...
验证码 换一张
取 消