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
.box { | |
position: relative; | |
width: 300px; | |
height: 200px; | |
border: 1px solid #cfcfcf; | |
background: #fafafa; | |
margin: 50px 5px; | |
float: left; | |
} |
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
/** | |
* Delayed transitions | |
*/ | |
.container { font: 14px sans-serif; width: 11em; height: 10em; background: #eee; position: relative; } | |
.title, .content { position: absolute; left: 1em; right: 0em; background: orange; color: white; padding: .5em 1em; } | |
.title { top: 7em; transition: all .3s .3s; } | |
.content { top: 11em; transition: all .3s; } | |
.container:hover .title { top: 1em; transition: all .3s; } |