Skip to content

Instantly share code, notes, and snippets.

@ab-5v
Created August 26, 2013 12:37
Show Gist options
  • Save ab-5v/6340996 to your computer and use it in GitHub Desktop.
Save ab-5v/6340996 to your computer and use it in GitHub Desktop.
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
body {
background: #f06;
background: linear-gradient(45deg, yellow, blue);
min-height: 100%;
}
.a {
position: relative;
}
.b,.c
{
position: absolute;
width: 100px;
height: 100px;
background: red;
transition: opacity 1s;
}
.c {
background: green;
}
.b:hover {
opacity: 1;
}
.c:hover {
visibility: hidden;
opacity: 0;
transition: visibility 1s ease 1s, opacity 1s;
}
<div class="a">
<div class="b"></div>
<div class="c"></div>
</div>
// alert('Hello world!');
{"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment