"HTML,CSS and JAVASCRIPT Sprite Animation"
Bootstrap 4.1.1 Snippet by kavyasubhsah

<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> </div> <div id="hi"></div> <button id="start">START</button> <button id="end">STOP</button>
#hi { width: 50px; height: 72px; background-image: url("7.png"); } @keyframes subbub { from { background-position: 0px; } to { background-position: -500px; } }
<script> start.addEventListener("click", function() { hi.style.animation = "subbub 1s steps(10) infinite"; } ); end.addEventListener("click", function() { hi.style.animation = ""; } ); </script>

Related: See More


Questions / Comments: