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

<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>
.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); } }

Related: See More


Questions / Comments: