Skip to content

Instantly share code, notes, and snippets.

@maskingtape
Created July 20, 2012 15:22
Show Gist options
  • Save maskingtape/3151304 to your computer and use it in GitHub Desktop.
Save maskingtape/3151304 to your computer and use it in GitHub Desktop.
Test fade on generated content
/**
* 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;
}
<p class="fade">This is my text element that will fade when you hover over it.</p>
{"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