Users should be able to:
- View the optimal layout depending on their device's screen size.
- See hover states for interactive elements.
- Live Site URL: https://preview-card.vercel.app/
- HTML
- CSS
- Margin Collapse
- Only occurs vertically.
- To avoid this,
display: inline-block
can be set on the element below.- Top and bottom margins/paddings are now respected.
- Hovering on element A to animate element B.
- Element A has to be before element B (HTML-wise).
- Ex:
section:first-child:hover > img { transform: translateX(150px);}
- GitHub - Kakamotobi
- Frontend Mentor - @Kakamotobi