Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "Hide Children on Hover" #653

Open
Mecrano opened this issue Jan 30, 2020 · 1 comment
Open

Add "Hide Children on Hover" #653

Mecrano opened this issue Jan 30, 2020 · 1 comment

Comments

@Mecrano
Copy link

Mecrano commented Jan 30, 2020

At some point we need to hide children when the parent is in a hover state, for example:
we have 2 image one over one, and when user hover it, we need show second image, hide first child

@Mecrano
Copy link
Author

Mecrano commented Jan 30, 2020

line 1864:

/*
 
   Hide the child when parent is mouse hover state:
 
   Put the hide-child-on-hover class on a parent element and any nested element with the
   child class will be hidden on hover or focus.
 
   <div class="hide-child-on-hover">
     <div class="child"> Hidden until hover or focus </div>
     <div class="child"> Hidden until hover or focus </div>
     <div class="child"> Hidden until hover or focus </div>
     <div class="child"> Hidden until hover or focus </div>
   </div>
 */
 .hide-child-on-hover .child { opacity: 1; transition: opacity .15s ease-in; }
 .hide-child-on-hover:hover  .child, .hide-child-on-hover:focus  .child, .hide-child-on-hover:active .child { opacity: 0; transition: opacity .15s ease-in; }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant