Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

css make hover on parent child move

.parent {
    background: white;
    pointer-events: none; // this disable the hover on the .parent

    &:hover {
      background: gray; // hover applied to .parent but disabled by the previous pointer-events: none;
    }
    a {
      pointer-events: auto; // this enable the pointer again
      &:hover {
        color: red; // this hover only for the a 
      }
    }
}
Source by www.davdenic.com #
 
PREVIOUS NEXT
Tagged: #css #hover #parent #child #move
ADD COMMENT
Topic
Name
4+4 =