3

I've got a table and it has rows that are collapsible when clicked on the table heading.

Problem is it doesn't seem to be very smooth, there's a lag and jump once I click on the header and when the content shows. Does anyone know how to fix this?

See example build »

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
calebo
  • 3,312
  • 10
  • 44
  • 66

1 Answers1

4

Unfortunately, table rows does not animate (with jquery) - see this related question on SO: How to Use slideDown (or show) function on a table row?

Work-around will be to use div based layout or try out wrapping td content into divs and animating those divs - see this fiddle. Of course, you have to adjust the css.

Community
  • 1
  • 1
VinayC
  • 47,395
  • 5
  • 59
  • 72