Quiz HTML & CSS : Transitions & Animations

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.

Moyen 10 questions ~6 minutes Réussi à partir de 80 %

Choisissez un mode

Vous jouez en invité : connectez-vous pour garder votre XP et votre série.

Exemple de question

Question 1 sur 10

In this declaration, what does 1s mean?

.btn { transition: background-color 0.3s ease 1s; }
Voir la réponse

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.

Ce que couvre ce quiz

  • 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 fréquentes

Faut-il un compte ?

Non. Tout le monde peut jouer. Connectez-vous pour garder votre XP, votre série, vos badges et votre historique.

Puis-je le refaire ?

Oui. Votre meilleur score est conservé, et les questions comme les réponses sont mélangées à chaque fois.