Skip to main content
CSS Bug Hunt Hard +35 XP

Animation Not Running

This animation is defined but never plays.

CSSFind the bug
1@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
2.card { opacity: 0; }
The bug is on line 2

Select the correct fix

Show answer and explanation

Answer: Add animation: fadeIn 0.5s forwards to .card

Defining @keyframes only creates the animation. You must apply it with the animation property on the element.

Hint: Defining and applying an animation are separate steps.

What this challenge tests

Bug Hunt in CSS: animations, keyframes.

Related challenges