<div class="container wrapper">
<div class="row">
<div class="card-w col-md-4">
<div class="card neumorphism">
<div class="card__icon">
</div>
<div class="card__text">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Vitae, iusto et. Omnis quam enim vitae, esse dolores hic reiciendis nobis eligendi commodi eaque sed maxime non dolorum incidunt laudantium facilis!
</div>
</div>
</div>
<div class="card-w col-md-4">
<div class="card inset">
<div class="card__icon">
</div>
<div class="card__text">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Vitae, iusto et. Omnis quam enim vitae, esse dolores hic reiciendis nobis eligendi commodi eaque sed maxime non dolorum incidunt laudantium facilis!
</div>
</div>
</div>
<div class="card-w col-md-4">
<div class="card active">
<div class="card__icon">
</div>
<div class="card__text">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Vitae, iusto et. Omnis quam enim vitae, esse dolores hic reiciendis nobis eligendi commodi eaque sed maxime non dolorum incidunt laudantium facilis!
</div>
</div>
</div>
</div>
</div>
/* variables */
$bkg: #f7f8fc;
$l-grad-hex-100: #efeff6;
$l-grad-rgba-100: rgba(179, 202, 226, 0.28);
$d-grad-100: dark;
body{
//background: linear-gradient(318.32deg, #C3D1E4 0%, #DDE7F3 55%, #D4E0ED 100%);
background: #e0e5ec;
min-height: 100vh;
}
.wrapper{
margin: 60px auto;
}
.neumorphism {
background-color: #e0e5ec;
//dark
box-shadow: 9px 9px 16px rgba(163, 177, 198, 0.6), -9px -9px 16px rgba(255, 255, 255, 0.5);
transition: all 250ms ease-in-out;
&:hover {
box-shadow: 9px 9px 16px rgb(163 177 198 / 60%), -9px -9px 16px rgb(255 255 255 / 50%), inset 3px 3px 7px rgb(136 165 191 / 48%), inset -3px -3px 7px #ffffff;
}
}
.card-w{
display: flex;
margin-bottom: 20px;
.card{
display: flex;
flex-direction: column;
align-items: center;
padding: 60px 30px;
border-radius: 30px;
position: relative;
background: transparent;
border-radius: 20px;
border: 1px solid rgba(255,255,255,0.2);
.card__icon{
}
.card__text{
text-align: center;
}
}
}
/* inset */
.card.inset {
box-shadow: inset 3px 3px 7px rgba(136, 165, 191, 0.48),
inset -3px -3px 7px #FFFFFF;
transition: all 250ms ease-in-out;
i {
text-shadow: 1px 1px 1px #d6e1ef99, 0 0 0 #000, 1px 1px 1px #d6e1ef00;
}
}
.card.active {
box-shadow: 9px 9px 16px rgba(163, 177, 198, 0.6),
-9px -9px 16px rgba(255, 255, 255, 0.5),
inset 3px 3px 7px rgba(136, 165, 191, 0.48),
inset -3px -3px 7px #FFFFFF;
background: linear-gradient(318.32deg, rgba(163, 177, 198, 0.1) 0%, rgba(163, 177, 198, 0.1) 55%, rgba(163, 177, 198, 0.25) 100%);
}
View Compiled
This Pen doesn't use any external JavaScript resources.