in/out viewport animation improvement