change class names, use transition instead of animation