JSFiddle - React, Tailwind, and code Playground

by Guruprasad Rao

HTML

<h1>
Sample Text
</h1>

CSS

h1 {
    animation-name: test;
    animation-duration:3000ms;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    animation-play-state:running;
}
@keyframes test {
    from {
        transform: translate(0,0);
    }
    to {
        transform: translate(100px,0);
    }
}
h1:hover {
    animation-play-state:paused;
}