jquery slideUp/slideDown functions not animating

后端 未结 5 662
庸人自扰
庸人自扰 2020-12-17 17:05

I\'m having trouble with .slideup() and .slideDown()

have a look at the following JSFiddle: http://jsfiddle.net/7se2r/4/

Although t

相关标签:
5条回答
  • 2020-12-17 17:43

    Can be done if you create a div layer inside your tds and animate that instead. It's not hard to programmatically add divs when creating your table.

    Demo: http://jsfiddle.net/jpillora/wU7RV/

    0 讨论(0)
  • 2020-12-17 17:48

    Also, check you don't have CSS transitions set on your element, or globally to all elements. This will screw with your animations:

    * {transition: all 0.1s ease;}
    
    0 讨论(0)
  • 2020-12-17 17:51

    With "tbody" you can use .show("slow") and .hide("slow"), but you can't do the sliding animation.

    Sliding will work if you try it on a "div" for example.

    0 讨论(0)
  • 2020-12-17 17:52

    Setting the dimensions of a part of a table is only used as the minimum dimension, so the section of the table is immediately visible at full size, and the animation of the height has no effect.

    0 讨论(0)
  • 2020-12-17 17:57

    Tbody can't be animated. Try to limit the height of Tbody and you'll see that it doesn't change the height.

    0 讨论(0)
提交回复
热议问题