又是轮播?没错,换个样式玩轮播。
HTML:
wtf < >
CSS:
.box {width: 1200px; height: 300px; transform-style: perserve-3d; margin: 50px auto; position: relative;} .box img{width:600px; position: absolute; top: 60px; transition:all .3s linear;} .box:hover .btn{opacity: 1;} .front {left: 0px;} .back {left: 600px;} .active {left: 300px; transform: scale(1.5); z-index: 10;} .btns .btn {width: 60px; height: 60px; display: block; position: absolute; background-color: rgba(0,0,0,.5); font-size: 50px; font-family: "微软雅黑"; color:rgba(255,255,255,.5); line-height: 55px; text-align: center; cursor: pointer; z-index: 100; opacity: 0; transition:opacity .3s linear;} .btns .btn:first-child {top: 125px;} .btns .btn:last-child {top: 125px; right: 0px;}
JS:
精彩专题分享:jQuery图片轮播 Javascript图片轮播 Bootstrap图片轮播
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持考高分网。



