"Heartbeat Css Animation"
Bootstrap 4.1.1 Snippet by sunil8107

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
<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 ---------->
<html>
<head>
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css" type="text/css" relative="stylesheet">
<!-- Include the above in your HEAD tag -->
<title> heart Animation</title>
</head>
<body>
<div class="container">
<div clas="animation">
<h1>Heart Animation Using Css keyframe</h1>
<div class="heart_img"><img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSH9AvU2jt3jAVK90LFSayYrHnC_XrC1JnrpHoOND1kAXfVYDxA-Q" alt="heaert"></div>
</div>
</div>
</body>
</html>
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
35
36
37
.container{max-width:1170px; margin:auto;}
.heart_img{margin:80px 0 0 0;}
.heart_img img {
animation: 2.5s ease 0s normal none infinite running animateHeartBeat;
overflow: inherit;
position: relative; display:inline-block; max-width:100px;
}
@keyframes animateHeartBeat {
0% {
transform: scale(1);
}
5% {
transform: scale(1.4);
}
10% {
transform: scale(1.3);
}
15% {
transform: scale(1.8);
}
50% {
transform: scale(1);
}
100% {
transform: scale(1);
}
}
@keyframes animateHeartBeat {
0% {
transform: scale(1);
}
5% {
transform: scale(1.4);
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: