Skip to content

Instantly share code, notes, and snippets.

@oli
Created May 4, 2013 14:25
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 oli/5517649 to your computer and use it in GitHub Desktop.
Save oli/5517649 to your computer and use it in GitHub Desktop.
Is visible transitionable?
/* Is visible transitionable?
Despite the spec it appears so
http://dev.w3.org/csswg/css-box/#the-visibility-property */
.box {
visibility: visible;
transition: all 0.5s ease-out;
width: 18em;
min-height: 4em;
padding: 0.75em 0;
text-align: center;
border: 2px solid #444;
background-color: #eee
}
.box:hover {
visibility: hidden;
border-color: #ddd;
}
<p class="box">Does <code>visible</code> transition on <code>:hover</code>?</p>
// alert('Hello world!');
{"view":"split","fontsize":"90","seethrough":"","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment