JSFiddle - React, Tailwind, and code Playground
by jrweinb
HTML
<a href="#"class="tip-spot"><div class="tip-center"></div><div class="tip-ring"></div></a>
CSS
.tip-spot {
position: relative;
width: 30px;
height: 30px;
display: inline-block;
}
.tip-spot:hover .tip-ring {
border: 3px solid #78ab07;
}
.tip-spot:hover .tip-center {
background-color: #78ab07;
}
.tip-center {
background-color: red;
opacity: 0.7;
-webkit-border-radius: 10px;
height: 10px;
width: 10px;
position: absolute;
top: 10px;
left: 10px;
}
.tip-ring {
border: 3px solid red;
-webkit-border-radius: 30px;
height: 24px;
width: 24px;
position: absolute;
left: 0px;
top: 0px;
-webkit-animation: pulse-ring 3s ease-out;
-webkit-animation-iteration-count: infinite;
opacity: 0.0
}
@-webkit-keyframes pulse-ring {
0% {-webkit-transform: scale(0.0, 0.0); opacity: 0.0;}
25% {opacity: 0.8;}
50% {-webkit-transform: scale(1.0, 1.0); opacity: 0.0;}
}