Add a transition effect when an HTML table is expanded/collapsed