„Wie erzeugt man einen Schatteneffekt, wenn man über eine Box fährt?“
DEMO: So sieht es aus
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;
}
Es ist ziemlich einfach. Viel Spaß beim Coden!
