I saw one CSS3 menu which has very nice transition:
transition: all 0.3s ease 0.1s;
I want to apply the same transition to my table. I've got a table which on table row click, new row is appended after clicked row and it's displayed or hidden.
Like in the code below(clickedTableRow has value of jQuery selector for clicked row):
clickedTableRow.after('<tr style="display:none;"><td>some content</td></tr>');
clickedTableRow.next().slideDown(3000);
Instead of slideDown
how can I apply the above css transition to newly added table row or is there javascript equivalent?
Question update:
Maybe I should rephrase. What is the best way to slide down slowly some newly created content?
It seems like:
clickedTableRow.after('<tr><td>some content</td></tr>').slideDown(3000);
Looks the same as:
clickedTableRow.after('<tr><td>some content</td></tr>');
Without slideDown effect, what am I missing here?