turn模拟翻书交互效果

代码语言:html

所属分类:布局界面

代码描述:turn模拟翻书交互效果

代码标签: 交互 效果

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

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <style>
        /* Basic sample */

        body {
            overflow: hidden;
            background-color: #fcfcfc;
            margin: 0;
            padding: 0;
        }

        .flipbook-viewport {
            overflow: hidden;
            width: 100%;
            height: 100%;
        }

        .flipbook-viewport .container {
            position: absolute;
            top: 50%;
            left: 50%;
            margin: auto;
        }

        .flipbook-viewport .flipbook {
            width: 922px;
            height: 600px;
            left: -461px;
            top: -300px;
        }

        .flipbook-viewport .page {
            width: 461px;
            height: 600px;
            background-color: white;
            background-repeat: no-repeat;
            background-size: 100% 100%;
        }

        .flipbook .page {
            -webkit-box-shadow: 0 0 20px rgba(0,0,0,0.2);
            -moz-box-shadow: 0 0 20px rgba(0,0,0,0.2);
            -ms-box-shadow: 0 0 20px rgba(0,0,0,0.2);
            -o-box-shadow: 0 0 20px rgba(0,0,0,0.2);
            box-shadow: 0 0 20px rgba(0,0,0,0.2);
        }

        .flipbook-viewport .page img {
            -webkit-touch-callout: none;
            -webkit-user-select: none;
            -khtml-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
            margin: 0;
        }

        .flipbook-viewport .shadow {
            -webkit-transition: -webkit-box-shadow 0.5s;
            -moz-transition: -moz-box-shadow 0.5s;
            -o-transition: -webkit-box-shadow 0.5s;
            -ms-transition: -ms-box-shadow 0.5s;

            -webkit-box-shadow: 0 0 20px #ccc;
            -moz-box-shadow: 0 0 20px #ccc;
            -o-box-shadow: 0 0 20px #ccc;
          .........完整代码请登录后点击上方下载按钮下载查看

网友评论0