"Box-shadow on hover"
Bootstrap 4.0.0 Snippet by NareshN

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container"> <div class="row"> <h2>Box Shadow Inset</h2> </div> <div class="box">Hover on Me </div> </div>
body{ padding:0; margin:20px; } h2{ text-align:center; } .box{ width:350px; height:350px; background:#f1f1f1; border:1px solid #ccc; text-align:center; vertical-align:middle; box-sizing:border-box; overflow:hidden; transition:2s ease-in-out; padding-top:160px; display:block; } .box:hover{ box-shadow:inset 0 0 100px -2px #000, 0 0 50px -15px #000; transition:2s ease-in-out; }

Related: See More


Questions / Comments: