css实现三维划桨图片切换过渡效果代码

代码语言:html

所属分类:幻灯片

代码描述:css实现三维划桨图片切换过渡效果代码

代码标签: 划桨 图片 切换 过渡 效果

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title></title>

    <style>
        * {
            margin: 0;
            padding: 0;
        }

        body { text-align: center; background-color: #191919; }

        li {
            list-style: none;
        }

        #box {
            position: relative;
            width: 1050px;
            height: 360px;
            margin: 200px auto 10px;
        }

        #box ul li {
            position: absolute;
            left: 0;
            top: 0;
            width: 1050px;
            height: 360px;
            display: none;
        }

        #show {
            position: absolute;
            left: 0;
            top: 0;
            width: 1050px;
            height: 360px;
            perspective: 800px; /*井深*/
            display: none;
        }

        #show div {
            position: relative;
            width: 525px;
            height: 72px;
            float: left;
            transform-style: preserve-3d; /*创遭3d环境*/
        }

        #show div em {
            position: absolute;
            left: 0;
            top: 0;
            display: block;
            width: 525px;
            height: 72px;
        }

        #show div .em1 {
            /*前面*/
            background: url("img/1.png");
            transform: translateX(5px);
        }

        #show di.........完整代码请登录后点击上方下载按钮下载查看

网友评论0