Skills101
← All practice quizzes

Quiz: CSS Variables and Animations

5 questions · new set on every retakeNo time limitPass: 60%+10 XP on first pass

Make CSS easier to maintain with custom properties (CSS variables) and build a dark mode, then add smooth motion with transitions, transforms and keyframe animations, while respecting users who prefer reduced motion.

Log in to take the quiz

Free account · see your score, answers and explanations, earn XP

  1. Question 1

    How do you read a custom property called --brand?

  2. Question 2

    What does color: var(--accent, orange); do if --accent is not defined?

  3. Question 3

    What is a key difference between CSS custom properties and Sass variables?

  4. Question 4

    Which media query lets a site follow the operating system's dark mode setting?

  5. Question 5

    In transition: transform 200ms ease-out 50ms; what is 50ms?

🎯 Today’s placement challenge — 10 questions, no login. Can you score 10/10?Take today’s challenge →