html – How do I add an animation to another element when another div class is hovered?


For example, if I have an element that is not wrapped within the same parent container as another div I am hovering, will it be possible to change this external element style?

<div class="externalElement"></div>


    <container>
    
    <div class="tohover"></div> </container>

How can I update

“externalElement” when I hover “tohover” div class? I’ve tried with jQuery but to no avail..



Source link

Latest articles

Related articles

Leave a reply

Please enter your comment!
Please enter your name here