Skip to content

Instantly share code, notes, and snippets.

@n0wak
Last active January 2, 2016 14:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save n0wak/8318930 to your computer and use it in GitHub Desktop.
Save n0wak/8318930 to your computer and use it in GitHub Desktop.
CSS3 opacity hover transition pro tip

#PROTIP#

If you're using CSS transitions to fade in / fade out a child element on hover but don't want the element to be "active" to mouse events when it's hidden, don't mess around with display: none (doesn't work with transitions) or visibility: hidden (unneeded complexity), but instead set pointer-events: none on the child element and set pointer-events: auto to it on the hover.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment