⼀个简单的flex布局,应⽤css3简单的实现遮罩,旋转,放⼤
的效果
⼀个简单的flex 布局 ,应⽤css3简单的实现遮罩,旋转,放⼤的效果,当然少不了过度属性
<div class="wrapper">
<div class="classic">
<div class="classic__left">
<span class="iconfont ic__tit"></span>
<h2>经典电影</h2>
<div class="classic__box">
<div class="classic__more">
<a href="#"><span class="sp__more">更多</span></a>
<span class="iconfont ic__more"></span>
</div>
<span class="vertical__line"></span>
<a href="#">
<span class="sp__fir">《悬崖之上》完整版在线观看免费 </span>
</a>
韭菜花的腌制方法<span class="vertical__line"></span>
<a href="#">
<span class="sp__two">怪物之书</span>
</a>
<span class="vertical__line"></span>
<a href="#">
<span class="sp__thr">午夜巴黎 Midnight in</span>
</a>
</div>
</div>
月元念什么
<div class="classic__right">
<span class="iconfont"></span>
<a href="#">
如果给我三天光明
<span class="sp__right">换⼀换</span>
阿桂简介
</a>
</div>
</div>
<ul class="classic__list">
<li class="classic__item" title="扎职">
<div class="classic__box">
<a href="#">
<img src="img.kuaibozy/upload/vod/20210518-1/9e37cc6c85df54cdae154521863dbb16.jpg" alt=""> </a>
<div class="classic__tag">
<span class="classic__num">2012</span>
<span class="classic__active">动作</span>
</div>
<div class="mask"></div>
<span class="iconfont"></span>
</div>
<p class="classic__tit"><a href="#" class="a__tit">扎职</a></p>
<p class="p__ment">陈伟霆 ;卫诗雅 ;曾国祥 ;温碧霞 </p>
</li>
</ul>
</div>
/* 经典电影内容 */
.classic__list {
display: flex;
flex-wrap: wrap;
margin-top: 10px;
margin-right: -5px;
}
.
classic__list .classic__item {
width: 16.666%;
margin-bottom: 5px;
}
}
.classic__list .classic__item .classic__tit a {
color: #000;
text-align: center;
display: block;
}
.classic__list .classic__item .p__ment{
font-size: 14px;
text-align: center;
color: #666;
}
.classic__list .classic__item .classic__box {
cursor: pointer;痛风怎么治疗最好
margin: 5px;
position: relative;
}
.classic__list .classic__item .classic__box .mask {
position: absolute;
会计实习记录left: 0;短篇小说
top: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.4);
box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
opacity: 0;
transition: opacity 1s;
border-radius: 5px;
}
.classic__list .classic__item .classic__box .iconfont {
display: block;
position: absolute;
top: 50%;
left: 50%;
color: #fff;
font-size: 20px;
opacity: 0;
transition: all .5s;
}
.classic__list .classic__item .classic__box:hover .iconfont { opacity: 1;
transform: scale(1.2);
}
.classic__list .classic__item:hover .a__tit {
color: #fb7299;
}
.classic__list .classic__item .classic__box:hover .mask { opacity: 1;
}
.classic__list .classic__item .classic__box img {
width: 100%;
border-radius: 5px;
火影高清壁纸}
.classic__list .classic__item .classic__box .classic__tag { position: absolute;
left: 3px;
left: 3px;
top: 3px;
}
.classic__list .classic__item .classic__box .classic__tag span {
display: inline-block;
width: 40px;
height: 20px;
background-color: #FFB800;
color: #fff;
border-radius: 5px;
font-size: 12px;
text-align: center;
line-height: 20px;
}
.classic__list .classic__item .classic__box .classic__tag .classic__num { background-color: #1890ff;
}