Question · HTML and CSS course · Module 6: CSS Animations

When to Use Transition Instead of Animation

When is it better to use transition instead of animation in CSS?

Answer options

  • When the animation has many intermediate steps (e.g., 0%, 25%, 50%, 100%)
  • When the animation should run automatically after the page loads
  • When you want a simple transition between two states triggered by interaction (e.g., :hover)
  • When the animation should repeat infinitely

You can check the correct answer by solving this task in the CodeWorlds game.