Is there a way to make the black ring transparent upon hover by changing
box-shadow: 0 0 0 5px #000, 0 0 0 10px green
to box-shadow: 0 0 0 5px transparent, 0 0 0 10px green
? It doesn't seem to be working for me. Any suggestions on how to achieve this effect?
html {
background-image: url('https://cdn-images-1.medium.com/max/800/1*aoR-yl7jicuEvQ5hZoQvjw.png');
background-size: 100%;
}
div{
position: relative;
width: 150px;
height: 150px;
background: #ccc;
border-radius: 50%;
transition: 0.3s;
border: 5px solid #fff;
}
div:hover{
box-shadow: 0 0 0 5px #000, 0 0 0 10px green;
}
<div></div>