Created
May 4, 2013 14:25
-
-
Save oli/5517649 to your computer and use it in GitHub Desktop.
Is visible transitionable?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p class="box">Does <code>visible</code> transition on <code>:hover</code>?</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// alert('Hello world!'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"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