Skip to content

Instantly share code, notes, and snippets.

@vxhviet
Created February 17, 2019 15:00
Show Gist options
  • Save vxhviet/07ebab56157b7019772f295f9e051193 to your computer and use it in GitHub Desktop.
Save vxhviet/07ebab56157b7019772f295f9e051193 to your computer and use it in GitHub Desktop.

On hover show and hide different div's at the same time?

SOURCE

<div class="showhim">
     HOVER ME
     <div class="showme">hai</div>
     <div class="ok">ok</div>
</div>
 .showme{ 
   display: none;
 }
 .showhim:hover .showme{
   display : block;
 }
 .showhim:hover .ok{
   display : none;
 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment