Skip to content

Instantly share code, notes, and snippets.

@ckschmieder
Created October 25, 2017 15:38
Show Gist options
  • Save ckschmieder/94ae94229e44ef4e974ea83935780f1c to your computer and use it in GitHub Desktop.
Save ckschmieder/94ae94229e44ef4e974ea83935780f1c to your computer and use it in GitHub Desktop.
potential hover effect for cards on falcon homepage
#menu-homepage > li {
transition: all 0.35s;
}
#menu-homepage > li::after {
position: absolute;
top: 0;
left: 0;
z-index: -1;
width: 100%;
height: 100%;
/* background: #000; */
content: '';
-webkit-transition: opacity 0.35s;
transition: opacity 0.35s;
box-shadow: 0 3px 30px rgba(0,0,0,0.6);
opacity: 0;
}
#menu-homepage > li:hover::after {
opacity: 1;
}
#menu-homepage > li:hover {
transform: scale(1.01);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment