I'm looking for a way to edit a div hover using only html. I need it to be html only because the code allows for an infinite number of different versions of the same div that are all different colors. I know with regular divs, you can include style="color: red" but that only lets me edit the original div. I need a code that will allow me to do so for the hover only.
TLDR: I want to be able to edit the circle:hover in html. Any help would be greatly appreciated.
CSS
.circle {
border-radius: 32px;
width: 25px;
height: 25px;
float: left;
font-size: 20px;
overflow: hidden;
margin: 30px 15px 30px 15px;
transition: height 0.5s ease;
border: 2px solid transparent;
}
.circle:hover {
border-radius: 32px;
border: 2px solid #fff;
height: 200px;
transition: height 0.5s ease;
}
#text {
text-align: center;
transform: rotate(-90deg);
margin-top: 115px;
font-family: 'Roboto', sans-serif;
text-transform: uppercase;
}
HTML
<div class="circle" style="background: rgba(197,214,210,1); box-shadow:
0px 0px 0px 20px rgba(197,214,210,0.4);"><div id="text">#C5D6D2</div>
</div>