JSFiddle - React, Tailwind, and code Playground
HTML
<div class="appointment">
<div class="desc">
<div class="app-date">07.10.2014</div>
<div class="app-location">Bamberg, Bayern</div>
</div>
</div>
<div class="appointment" >
<div class="desc">
<div class="app-date">08.10.2014</div>
<div class="app-location">Hamburg, Hamburg</div>
</div>
</div>
CSS
.appointment {
position: relative;
z-index: 1000;
padding: 5px;
border: 1px solid #BBBBBB;
cursor: pointer;
transition: all 0.5s;
background: #FFFFFF;
}
.appointment:hover {
transform: scale(1.1);
}
.appointment:hover:after {
content:'';
position: absolute;
z-index: -1;
opacity: 0.6;
top: 20px;
width: 100px;
height: 30px;
background: #000000;
transform: rotate(-3deg);
}
.appointment:hover:before {
content:'';
position: absolute;
z-index: -1;
left: 85%;
opacity: 0.6;
width: 100px;
top:20px;
height: 30px;
background: #000000;
transform: rotate(3deg);
}