Skip to content

Instantly share code, notes, and snippets.

@rogierborst
Last active April 8, 2023 19:56
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rogierborst/5591024 to your computer and use it in GitHub Desktop.
Save rogierborst/5591024 to your computer and use it in GitHub Desktop.
Make table rows slideUp with jQuery
$('tr').children('td')
.animate({'padding-top' : 0, 'padding-bottom' : 0}) // first remove vertical padding
.wrapInner('<div />') // wrap contents in divs, because THOSE can be animated
.children()
.slideUp(function(){
$(this).closest('tr').remove();
});
@Dakarator
Copy link

Thank u!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment