update animation for transition