JSFiddle - React, Tailwind, and code Playground
by secondfre
HTML
<div id="container">
<div id="box">
<p>Hover Here</p>
</div>
</div>
CSS
#container {
height: 200px;
width: 200px;
position: relative;
display: block;
overflow: hidden;
}
#box {
height: 200px;
width: 200px;
background-image: url(http://lorempixum.com/600/600/city/3/);
background-repeat: no-repeat;
position: absolute;
-webkit-border-radius: 100px;
-webkit-box-shadow: inset 0px 0px 10px rgba(0,0,0,0.5);
-webkit-animation-name: pulse;
-webkit-animation-duration: 20s;
-webkit-animation-iteration-count: 10;
-webkit-animation-direction: alternate;
}
#box p {
font: 25px/200px Helvetica, sans-serif;
color: white;
text-align: center;
}
@-webkit-keyframes pulse {
0% {background-position:0px 0px}
5% {background-position:0px 0px}
25% {background-position:0px -200px}
50% {background-position:0px -400px}
75% {background-position:-200px -400px}
100% {background-position:-200px -200px}
}
#box:hover {
}