How to animate a new added row?
How to animate a new added row?
richard.carree.com@gmail.com
Posts: 23Questions: 7Answers: 0
Link to test case: http://live.datatables.net/xaloxomu/9/edit
Description of problem:
I'd like to animate a new added row but the slideDown()
method seems not to work on DataTables rows (see the test case).
I also tried another strategy using animate()
but the problem is it only grows the row height from its orignal size ans I didn't find how to start from 0px (I commented the code part of this strategy in the test case).
This discussion has been closed.
Answers
I adapted the code Allan presented in this thread for how Editor flashes rows in this example:
http://live.datatables.net/xaloxomu/10/edit
Is this the type of animation you are looking for?
Take a look at this SO thread stating that animations might not be supported in table rows. Maybe fadeIn() will do what you want:
http://live.datatables.net/xaloxomu/11/edit
Kevin
Thanks Kevin, even though it's not the animation I was looking for,
fadeIn()
is a very good compromise! The way how to flash is very useful as well.BTW, do you know if this has been done?
As far as I am aware it has not, sorry.
Allan