"css card hover effects"
Bootstrap 4.1.1 Snippet by dkstudio

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/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>Create your snippet's HTML, CSS and Javascript in the editor tabs</h2> <div class="card"> <div class="box relative-position""> <div class="card-body"> <h3>kjhahhahdha</h3> <p>asfsdfsdjfjskdjfkjdskjfkljdsklsjflkdjslfjl</p> </div> </div> </div> </div> </div>
.card {transition: 0.5s all ease-in-out; box-shadow: 0px 20px 81px 0px rgb(8 0 20 / 14%); background-color: #fff;} .card:hover {transform: translate(-7px, -7px); box-shadow: 0px 20px 81px 0px rgb(8 0 20 / 30%);} .box:hover:before { transform: translate(7px, 7px);} .box:before { content: ""; width: 100%; top: 0; left: 0; height: 100%; z-index: -3; border-radius: 10px; position: absolute; transition: 0.5s all ease-in-out; background-image: linear-gradient( 45deg, #fc01fd 32%, #6b2c94 100%); } .box:after { content: ""; height: 100%; width: 100%; position: absolute; top: 0; left: 0; z-index: -2; border-radius: 10px; background-color: #fff; } .relative-position { position: relative;}

Related: See More


Questions / Comments: