🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: CSS Variables and Animations: all 10 questions

Quiz: CSS Variables and Animations · Question 9 of 10

A card uses transform: translateY(-4px) on hover. What happens to the cards next to it?

A card uses transform: translateY(-4px) on hover. What happens to the cards next to it?

  1. A.They move down by 4px
  2. B.Nothing; transforms do not change the layout of other elements
  3. C.They also move up
  4. D.They disappear
Answer & explanation

Correct answer: Nothing; transforms do not change the layout of other elements

Transforms change how the element is drawn, not the space it takes up.

Can you get the rest right without peeking?

Take the timed Quiz: CSS Variables and Animations quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →