Permalink
Browse files

hover-visilibility

  • Loading branch information...
1 parent 528b2ad commit 83df91c36e4234a49761f129d5edc453700ff68c @chriseppstein chriseppstein committed Aug 11, 2010
Showing with 16 additions and 0 deletions.
  1. +16 −0 hover-visibility/hover-visibility.sass
@@ -0,0 +1,16 @@
+// Provides a nice visibility transition for a nested element
+// with gracefull degradation.
+=hover-visiblity-hidden($duration: 0.333s)
+ visibility: hidden
+ opacity: 0
+ +transition(opacity visibility, $duration, ease)
+
+=hover-visibility-visible
+ visibility: visible
+ opacity: 1
+
+div.within-container
+ +hover-visiblity-hidden
+ .container &,
+ &.sticky
+ +hover-visibility-visible

0 comments on commit 83df91c

Please sign in to comment.