JSFiddle - React, Tailwind, and code Playground

HTML

<h1>Tutorials Point</h1>
      <p>this is an example of moving left animation .</p>
	  <button onclick="myFunction()">Reload page</button>

CSS

h1 {
            -moz-animation-duration: 3s;
            -webkit-animation-duration: 3s;
            -moz-animation-name: slidein;
            -webkit-animation-name: slidein;
         }
         @-moz-keyframes slidein {
            from {
               margin-left:100%;
               width:300%
            }
            to {
               margin-left:0%;
               width:100%;
            }
         }
         @-webkit-keyframes slidein {
            from {
               margin-left:100%;
               width:300%
            }
            to {
               margin-left:0%;
               width:100%;
            }
         }

JavaScript

function myFunction() {
           location.reload();
           }