A Pen by limichange on CodePen.
Created
January 9, 2015 08:48
-
-
Save limichange/6603950822950deaf199 to your computer and use it in GitHub Desktop.
YPNrJp
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
div.box | |
div.control | |
div.big-love 推荐 | |
div.big-switch 开关 | |
div.big-delete 删除 | |
div.title | |
div.txt 这里是标题 | |
div.love | |
div.deng |
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
@import "compass/css3"; | |
.box { | |
width: 210px; | |
height: 180px; | |
background: red; | |
position: relative; | |
margin-top: 200px; | |
overflow: hidden; | |
&:hover { | |
.title { | |
bottom: -50px; | |
} | |
.control { | |
top: 0px; | |
} | |
} | |
.title { | |
position: absolute; | |
bottom: 0px; | |
height: 40px; | |
width: 100%; | |
transition: all .5s ease; | |
background: rgba(0, 0, 0, 0.6); | |
color: #FFFFFF; | |
.txt { | |
margin: 10px; | |
} | |
} | |
.control { | |
transition: all .5s ease; | |
position: absolute; | |
color: #FFFFFF; | |
top: -140px; | |
height: 140px; | |
div { | |
height: 100%; | |
width: 70px; | |
float: left; | |
text-align: center; | |
background: rgba(0, 0, 0, 0.6); | |
} | |
.big-love { | |
} | |
.big-switch { | |
} | |
.big-delete { | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment