use transition instead of animation