Skip to content

Instantly share code, notes, and snippets.

@limichange
Created January 9, 2015 08:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save limichange/6603950822950deaf199 to your computer and use it in GitHub Desktop.
Save limichange/6603950822950deaf199 to your computer and use it in GitHub Desktop.
YPNrJp
div.box
div.control
div.big-love 推荐
div.big-switch 开关
div.big-delete 删除
div.title
div.txt 这里是标题
div.love
div.deng
@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