快捷搜索:  朋友圈  虎牙  响应式  as  次数  伪静态  浏览数  www.ymwears.cn

产品风门效果

产品风门效果

******************************产品风门效果**************************************************************************
 
<div class="cp_s divulhw anniu">
<ul>
{web:content action="lists" catid="732" order="id DESC" thumb="1" moreinfo="1" num="6" }
         {loop $data $n $r}
<li>
<a href="{$r['url']}"><img src="{$r[thumb]}"></a>
<div class="cplibg">
<div class="cpli">{$r[title]}</div>
<div class="cponbg">
<div style=" clear:both; height:80px;"></div>
<p>{$r[title]}</p>
<div style=" clear:both; height:40px;"></div>
<a href="{$CATEGORYS[732]['url']}"><div class="more">MORE+</div></a>
</div>
</div>
<div class="cponbg"></div>
</li>
{/loop}
{/web}  
</ul>
</div>
 
 
.cp_s{width: 100%; height:320px;}
.cp_s li{width: 120px;height: 100%;float: left;overflow: hidden; border-left: 1px solid #fff;transition:all 1s;position: relative;}
.cp_s li img{width: auto;height: 100%;}
.cp_s .actives{width: 592px;height: 100%;transition:all 1s;}
.cplibg{width: 100%;height: 100%;background: rgba(0,0,0,.4);position: absolute;top: 0;text-align: center;color: #fff;}
.cplibg .cpli{width: 40px;height: 100%;text-indent: 40px;font-size: 16px;text-align: center;margin: auto;writing-mode: tb;}
.cp_s .actives .cplibg .cpli{display: none;}
.cp_s li .cponbg{display: none;}
.cp_s .actives .cponbg{display: block;}
.cponbg p{font-size: 24px;font-family: "微软雅黑";color: #fff;text-align: center;}
.cp_s .actives img{width: 100%;height: 100%;}
.more:hover{
transform:rotate(360deg);
-ms-transform:rotate(360deg);  /* IE 9 */
-moz-transform:rotate(360deg);  /* Firefox */
-webkit-transform:rotate(360deg); /* Safari 和 Chrome */
-o-transform:rotate(360deg);
 
transition: 1s;
-moz-transition: 1s; /* Firefox 4 */
-webkit-transition: 1s; /* Safari 和 Chrome */
-o-transition: 1s; /* Opera */
}
.more{margin: auto; width: 150px;height: 40px;background:#eb4f42 ;font-size: 16px;color: #fff;text-align: center;line-height: 40px;
transition: 1s;
-moz-transition: 1s; /* Firefox 4 */
-webkit-transition: 1s; /* Safari 和 Chrome */
-o-transition: 1s; /* Opera */
}

您可能还会对下面的文章感兴趣: