Looking to update the design of my inline SVG logo when the mouse hovers over a different section on the page. Below is a simplified version of my HTML with only the necessary components included:
<!-- logo container -->
<div class='fullLogobg'>
<!-- start inline svg -->
<svg version="1.1" id="Layer_2" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="2000px" height="2000px" viewBox="0 0 2000 2000" enable-background="new 0 0 2000 2000" xml:space="preserve">
<text class='bottomLogoText' transform="matrix(1 0 0 1 49 1967)" fill="#9933FF" font-family="'TrajanPro3-Bold'" font-size="197">
Dummy Text
</text>
</svg>
<!-- end inline svg -->
</div>
<!-- end logo container -->
<!-- begin part of my navigation -->
<div class='leftColumn'>
<a href="#">
<div class='topLeft'>
<span class='linkText'>
Link text
</span>
</div>
</a>
<a href="#">
<div class='bottomLeft'>
<span class='linkText'>
Link text
</span>
</div>
</a>
</div>
<!-- end navigation -->
Focusing on the text in the SVG along with the division using the topLeft class, here's the relevant CSS for reference:
.fullLogobg
{
position:absolute;
top:25%;
left:25%;
width:50%;
height:50%;
z-index:1;
background-color: transparent;
}
.fullLogobg svg
{
display:block;
margin:0 auto;
width:auto;
height:100%;
width:100%;
z-index:1;
background-color: transparent;
}
.leftColumn
{
Width:50%;
height:100%;
background-color:transparent;
overflow:auto;
float:left;
position:relative;
}
.topLeft
{
margin:0%;
width:96%;
height:46%;
background-color:transparent;
display:block;
border:3px #9933FF solid;
position:absolute;
top:0px;
left:0px;
}
.topLeft:hover
{
color:green;
border:3px green solid;
}
.linkText
{
text-align:center;
display:block;
width:100%;
height:20px;
font-size:20px;
font-weight:700;
color:inherit;
position:absolute;
top:50%;
margin-top:-10px;
background-color:transparent;
}
The goal is to change the style of the SVG text when the topLeft division is hovered over. Attempting various selectors like:
.topLeft:hover > .fullLogobg .bottomLogoText
{
fill:green;
}
or
.topLeft:hover ~ div svg .bottomLogoText
{
fill:green;
}
and other combinations have not been successful. Seeking suggestions on how to achieve this effect using CSS or JavaScript if necessary. Any insights would be greatly appreciated. Thank you!