Command Palette

Search for a command to run...

Hectal
Phase 10: Effects, Transitions and Animation
CSS · Exercise 2 of 5 PreviousNext
Beginner

A card that lifts

When the card is hovered, make it rise a few pixels and grow a shadow, smoothly.

Move it with a transform (or the translate property), not with top or margin, so the cards around it don't move and the browser doesn't redo layout.

What Check tests

  1. The card transitions its movement
  2. On hover the card moves up with a transform
  3. On hover the shadow changes
  4. The hover doesn't change layout properties

Stuck? One hint at a time

The solution unlocks after your first Check. Try first: that is where the learning happens.

Runs in your browser. Your code is saved here.

Your page

Press Run to see the page.

Console

Nothing logged yet.