« Comment créer un effet d’ombre au survol d’une boîte ? »
DEMO : rendu
HTML
<div class="button-pop">TRY HOVERING OVER THE BOX!</div>
CSS
.button-pop {
border: 2px solid black;
padding: 1rem;
width:200px;
height:200px;
}
.button-pop:hover {
position: relative;
right: 5px;
bottom: 5px;
box-shadow: 7px 7px #111;
}
C’est assez simple. Bonne programmation !
