1. 程式人生 > >CSS3--底部菜單上拉效果

CSS3--底部菜單上拉效果

type back blog 作者 rgba 文章 tle set ive

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>底部菜單上拉效果</title>
<style>
*{
margin: 0;
}
.wrap{
width: 1200px;
margin: 50px auto;

}
.wrap .item{

width: 120px;
height: 120px;
border: 1px solid #ddd;
background: url(img/1.jpg) no-repeat;
background-size:100% 100%;
position: relative;
overflow: hidden;
}
.wrap .item .info{
position: absolute;
width: 100%;
height: 40px;
background:rgba(0,0,0,0.5);
color: #fff;
bottom: -40px;
left: 0;
transition: 0.75s all;
}
.wrap .item:hover .info{
bottom: 0;
}
</style>
</head>
<body>
<div class="wrap">
<div class="item">
<span class="info">鬥破蒼穹</span>
</div>
</div>
</body>
</html>
---------------------
作者:AsaZyf
來源:CSDN
原文:https://blog.csdn.net/AsaZyf/article/details/83059771
版權聲明:本文為博主原創文章,轉載請附上博文鏈接!

CSS3--底部菜單上拉效果