🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← All topics

Quiz: CSS Variables and Animations: questions with answers

10 questions, each with the answer and a short explanation.

Take the timed quiz + get a certificate →
  1. Q1. How do you read a custom property called --brand?
  2. Q2. What does color: var(--accent, orange); do if --accent is not defined?
  3. Q3. What is a key difference between CSS custom properties and Sass variables?
  4. Q4. Which media query lets a site follow the operating system's dark mode setting?
  5. Q5. In transition: transform 200ms ease-out 50ms; what is 50ms?
  6. Q6. Which timing function starts fast and slows down at the end, good for elements entering the screen?
  7. Q7. Which pair of properties is cheapest for the browser to animate?
  8. Q8. What does animation: spin 0.8s linear infinite; do?
  9. Q9. A card uses transform: translateY(-4px) on hover. What happens to the cards next to it?
  10. Q10. Why add a prefers-reduced-motion: reduce media query?