Skip to content

Instantly share code, notes, and snippets.

@nocodesupplyco
Created December 19, 2022 16:58
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Effect All Siblings on Hover With CSS
<style>
.parent:hover > .child:not(:hover) {
opacity: 0.1;
}
</style>
<div class="parent">
<div class="child">first item</div>
<div class="child">second item</div>
<div class="child">third item</div>
<div class="child">fourth item</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment