"Animated Heart In HTML5 and Css3"
Bootstrap 4.1.1 Snippet by AbhishekSinha

<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"> <h1 class="h1"> </h1> </div> <div class="Container text-center mb-5"> <small style="color:#f00">Abhishek Vivek Sinha <a href="https://www.admecindia.co.in/">@ADMEC MULTIMEDIA</a></small> </div>
.h1{ position: relative; width: 200px; height:200px; background-color:red; margin: 200px auto; animation: jim 5s infinite linear; } .h1::before{ position:absolute; content: ""; border-style: solid; border-width: 100px; border-color: red red red red; border-radius: 100px; animation: feel 5s infinite linear; top: -103px; left: 0px; } .h1::after{ position:absolute; content: ""; border-style: solid; border-width: 100px; border-color: red red red red; border-radius: 100px; top: 0px; left: -96px; animation: feelo 5s infinite linear; } @keyframes feel{ 0%{ top: -103px; left: 0px; } 25%{ top: 95px; left: 0px; } 50%{ top: 95px; left: 0px; } 75%{ top: -103px; left: 0px; } 100%{ top: -103px; left: 0px; } } @keyframes feelo{ 0%{ top: 0px; left: -96px; } 25%{ top: 0px; left: -96px; } 50%{ top: 0px; left: 96px; } 75%{ top: 0px; left: 96px; } 100%{ top: 0px; left: -96px; } } @keyframes jim{ 0%{ transform: rotate(45deg); } 100%{ transform: rotate(45deg); } }

Related: See More


Questions / Comments: