I am working on drawing an SVG circle pulled from a database along with its label. I am looking to have the stroke width of the circle and the text increase simultaneously when hovering over the circle. Would creating a CSS subclass be the best approach for this? I am still learning the ropes in this area so any guidance would be appreciated.
<circle class="circles"cx=',row[1],' cy=',row[2],' r="0.2"></circle>
<text class="text" x=',row[1],'y=',row[2],' transform="translate(0',move,')scale(-1,1) rotate(180)">',row[0],'</text>')
.text {
font-size: 0.8px;
font-family: Verdana;
fill: peachpuff;
}
.text:hover {
font-size: 2px;
}
.circles{
fill: cyan;
}
.circles:hover{
stroke: cyan;
stroke-width: 0.4;
}