I have multiple elements with the class .foo
:
<a href="#" class="foo">Hello!</a>
<a href="#" class="foo">¡Hola!</a>
<a href="#" class="foo">Bonjour !</a>
When I hover over one of those, I want to be able to apply styling to all .foo
elements, except the one that has been hovered over.
I suppose I'm looking for the CSS equivalent to $(this) in jQuery.
Something like this, perhaps:
.foo:hover::not(this) {
color:fuchsia;
}