HTML & CSS Transitions & Animations Quiz

This CSS quiz covers transition, @keyframes and the animation properties. You will decide what animates, what jumps, how long things take and which properties are cheap for the browser to animate.

Medium 10 questions ~6 minutes Pass at 80%

Choose a mode

Playing as a guest: sign in to keep your XP and streak.

Sample question

Question 1 of 10

In this declaration, what does 1s mean?

.btn { transition: background-color 0.3s ease 1s; }
Show the answer

B. The color change waits 1 second before it starts In the transition shorthand the first time value is the duration and the second is the delay. So the change starts after 1 second and then takes 0.3 seconds.

What this quiz covers

  • The transition shorthand: property, duration, timing function, delay
  • Why height: auto and transitions only in :hover surprise people
  • @keyframes with animation-direction, animation-fill-mode and steps()
  • Animating transform and opacity for smooth performance
  • Respecting prefers-reduced-motion

Questions people ask

Do I need an account?

No. Anyone can play. Sign in to keep your XP, streak, badges and history.

Can I retake it?

Yes. Your best score is kept, and the questions and answers are shuffled each time.