JSFiddle - React, Tailwind, and code Playground
by Ryan Brown
HTML
<div id="b1">
<a href="#">Touch me</a>
<div id="b2"></div>
<div id="b3"></div>
</div>
from
http://www.cssauthor.com/jquery-css3-hover-effects/#Text
CSS
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
background: #e7e7e7;
}
#b1 {
text-align: center;
height: 200px;
width: 200px;
margin: 50px auto;
background: #a10000;
transition: 7.8s ease;
border-radius: 50%;
text-align: center;
position: relative;
cursor: pointer;
}
#b2 {
position: absolute;
height: 200px;
width: 200px;
border: 7px solid #a10000;
border-radius: 50%;
transition: all 7.8s ease-out;
z-index: 1;
top: -0px;
}
#b3 {
position: absolute;
height: 200px;
width: 200px;
border: 7px solid #a10000;
border-radius: 50%;
transition: all 7.8s ease;
top: 0px;
}
#b1:hover #b2 {
transform: rotateX(360deg)
}
#b1:hover #b3 {
transform: rotateY(360deg)
}
#b1:hover {
background: transparent;
box-shadow: 0 0 50px rgba(0, 0, 0, .7) inset;
}
#b1:hover a {
color: #a10000;
}
#b1 a {
font-family: arial;
font-size: 18px;
color: #fff;
line-height: 200px;
text-decoration: none;
transition: all 7.8s ease;
text-transform: uppercase;
}