โ† All CSS Flashcard Decks

CSS Professional Development Flashcards

7 cards from real CSS practice questions. Tap to flip, then mark Knew It or Still Learning โ€” missed cards come back until you master them.

Read the first 7 CSS Professional Development flashcards as text
  1. Which at-rule applies styles only when certain viewport conditions are met?

    Answer: @media

    `@media` queries apply styles conditionally based on device or viewport features.

  2. What is the purpose of the `@keyframes` rule?

    Answer: Defining animation steps

    `@keyframes` defines the intermediate states of a CSS animation.

  3. Which property triggers GPU-accelerated compositing most reliably for smooth motion?

    Answer: transform

    Animating `transform` avoids layout/paint and can be GPU-composited for smoothness.

  4. What does the `prefers-color-scheme` media feature detect?

    Answer: User's light or dark mode preference

    `prefers-color-scheme` reports whether the user prefers a light or dark interface.

  5. Which media feature respects users who want minimal animation?

    Answer: prefers-reduced-motion

    `prefers-reduced-motion` lets you reduce or remove animations for sensitive users.

  6. What does `transition: all 0.3s ease` apply a timed change to?

    Answer: Any animatable property that changes

    Using `all` transitions every animatable property that changes value.

  7. Which timing function starts slow, speeds up, then slows down?

    Answer: ease-in-out

    `ease-in-out` accelerates at the start and decelerates at the end.