jquery全屏翻书动画效果

代码语言:html

所属分类:动画

代码描述:jquery全屏翻书动画效果

代码标签: 动画 效果

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

<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>jQuery书本翻页特效</title>

    <!--主要样式-->
    <style>
        html {
            height: 100%;
            overflow: hidden;
        }
        body {
            background: black;
            margin: 0;
            width: 100%;
            height: 100%;
        }

        h1 {
            text-align: center;
        }

        .scene {
            width: 45%;
            height: 90%;
            margin: 5% 5% 5% 50%;

            perspective: 1000px;
        }

        .book {
            position: relative;
            width: 100%;
            height: 100%;

            transform-style: preserve-3d;
        }

        .page {
            cursor: pointer;
            position: absolute;
            color: black;
            width: 100%;
            height: 100%;

            transition: 1.5s transform;
            transform-style: preserve-3d;
            transform-origin: left center;
        }
        .front,
        .back {
            position: absolute;

            width: 100%;
            height: 100%;
            padding: 10% 5% 5%;
            box-sizing: border-box;

            backface-visibility: hidden;
            background: -webkit-gradient(linear, 0% 0%, 100% 100%, from(#FFFFFF), to(#CCCCCC));
            background: linear-gradient(tobottom right, #fff, #ccc);
        }
        .back {
            transform: rotateY(180deg);
        }

        .page.active {
            z-index: 1;
        }
        .page.flipped {
            transform: rotateY(-180deg);
        }
        .page.flipped:last-of-type {
            z-index: 1;
        }

        p {
            margin: 0 0 0.1em;
            text-indent: 1em;
        }

        .qr {
            margin: 50px auto;
            max-width: 50%;
        }
        .qr img {
            display: block;
        }


        /* iPads (portrait) ----------- */
@media only screen
        and (min-device-width : 768px)
        and (max-device-width : 1024px)
        and (o.........完整代码请登录后点击上方下载按钮下载查看

网友评论0