Hover Cards and Fade-In Hero
HTML / CSS
20 pts
Hover Cards and Fade-In Hero
The page is responsive. Now add the motion at the end of the CSS:
.card:transition: transform 0.3s ease;.card:hover:transform: translateY(-6px);@keyframes fade-infromopacity: 0andtransform: translateY(20px)toopacity: 1andtransform: translateY(0)..hero:animation: fade-in 0.8s ease-out;
Checklist
- Lift the cards smoothly on hover.
- Write the
fade-inkeyframes. - Play it once on the hero.
🔑 Solution
If you view the solution before passing, you earn half points for this exercise. You still need to type it and press Check to finish.
How it works, step by step
Point at a step to highlight its lines. Type the solution yourself and press Check answer to finish.
