"css card hover effects"
Bootstrap 4.1.1 Snippet by dkstudio

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<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>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
.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;}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: