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

Defining @keyframes in CSS

How do you define a CSS animation using @keyframes?

Answer options

  • @keyframes animationName { ... }
  • animation: animationName { ... }
  • keyframes animationName { ... }
  • @animation animationName { ... }

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