There's no cross-browser way to do this except for setting a timeout.
setTimeout($('#myDiv').empty, 500);
There are some browser-prefixed methods for this, but I think I remember them being unreliable. See this SO question: Callback on CSS transition