"♥ HEARTBEAT CSS ANIMATION "
Bootstrap 4.1.1 Snippet by nirav.mandli

1
2
3
4
5
6
7
8
9
10
11
12
13
<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 ---------->
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
<div class="container">
<div class="form-group"></div>
<div class="text-center">
<h1 class="text-uppercase">heartbeat animation·<i class="fa fa-heart heart"></i></h1>
</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
.heart {
color: #eb5e28;
animation-timing-function: ease-in-out;
animation-duration: 1s;
animation-name: heartbeat;
animation-iteration-count: infinite;
}
@keyframes heartbeat {
0% {
transform: scale(.75);
}
20% {
transform: scale(1);
}
40% {
transform: scale(.75);
}
60% {
transform: scale(1);
}
80% {
transform: scale(.75);
}
to {
transform: scale(.75);
}
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: