Created
July 20, 2012 15:22
-
-
Save maskingtape/3151304 to your computer and use it in GitHub Desktop.
Test fade on generated content
This file contains hidden or 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
/** | |
* Test fade on generated content | |
*/ | |
.fade { | |
position:relative; | |
} | |
.fade:after { | |
opacity: 0.5; | |
transition: opacity .25s ease-in-out; | |
-moz-transition: opacity .25s ease-in-out; | |
-webkit-transition: opacity .25s ease-in-out; | |
content: ""; | |
display: block; | |
width:10px; | |
height:10px; | |
background-color:blue; | |
} | |
.fade:hover:after { | |
opacity: 0; | |
} |
This file contains hidden or 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="fade">This is my text element that will fade when you hover over it.</p> |
This file contains hidden or 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":"100","seethrough":"","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment