威尼斯手机平台登陆-官方网站登录

威尼斯手机平台登陆为您带来世界三大博彩公司最新相关资讯,威尼斯官方网站登录充分考虑到不同地域网民的不同需求,威尼斯手机平台登陆良好的用户界面,人性化的操作,实用的功能设计使其广泛受到欢迎,推动实体出版、影视、动漫、游戏等相关文化产业的发展。

您的位置:威尼斯手机平台登陆 > 威尼斯登录首页 > 威尼斯登录首页付费投稿安排,付费投稿安排

威尼斯登录首页付费投稿安排,付费投稿安排

发布时间:2020-02-27 14:02编辑:威尼斯登录首页浏览(161)

    本文由码农网 – 小峰原创,转发请看清文末的转发须要,招待参与大家的付费投稿安顿!

    本文由码农网 – 小峰原创,转发请看清文末的转发必要,迎接参预我们的付费投稿布署!

    本文由码农网 – 小峰原创,转发请看清文末的转发必要,应接参与大家的付费投稿陈设!

    那是一款来自Doodle的创意文章,它是八个基于HTML5 Canvas的电吉他,当我们将鼠标滑过吉他的弦时,电吉他将会发生巧妙的响动,特别酷的是,你能够动用键盘来弹奏一首动听的歌词,极其苍劲的HTML5。

    那是四个依据HTML5的齿轮动漫特效,我们将齿轮转动的物历史学原理,转换为HTML5代码,在网页上达成了效仿齿轮转动的卡通片效果。该齿轮动漫的最大特色是它由众三个齿轮组成,那对齿轮传动的算法必要就大大进步了,而且大家并未用JavaScript,而是纯CSS3完结的。

    那是一款特别炫彩的HTML5 3D书本翻页动漫,效果相比较较轻松,拖拽鼠标模拟用手翻页,更不错的是翻页进度中,突显出逼真的3D立体效果。书本中的文字和图片也会3D体现,太帅。

    威尼斯登录首页 1

    威尼斯登录首页 2

    威尼斯登录首页 3

    威尼斯登录首页,在线演示源码下载

    在线演示源码下载

    在线演示源码下载

    HTML代码

    HTML代码

    <div id="level">
        <div id="content">
            <div id="gears">
                <div id="gears-static"></div>
                <div id="gear-system-1">
                    <div class="shadow" id="shadow15"></div>
                    <div id="gear15"></div>
                    <div class="shadow" id="shadow14"></div>
                    <div id="gear14"></div>
                    <div class="shadow" id="shadow13"></div>
                    <div id="gear13"></div>
                </div>
                <div id="gear-system-2">
                    <div class="shadow" id="shadow10"></div>
                    <div id="gear10"></div>
                    <div class="shadow" id="shadow3"></div>
                    <div id="gear3"></div>
                </div>
                <div id="gear-system-3">
                    <div class="shadow" id="shadow9"></div>
                    <div id="gear9"></div>
                    <div class="shadow" id="shadow7"></div>
                    <div id="gear7"></div>
                </div>
                <div id="gear-system-4">
                    <div class="shadow" id="shadow6"></div>
                    <div id="gear6"></div>
                    <div id="gear4"></div>
                </div>
                <div id="gear-system-5">
                    <div class="shadow" id="shadow12"></div>
                    <div id="gear12"></div>
                    <div class="shadow" id="shadow11"></div>
                    <div id="gear11"></div>
                    <div class="shadow" id="shadow8"></div>
                    <div id="gear8"></div>
                </div>
                <div class="shadow" id="shadow1"></div>
                <div id="gear1"></div>
                <div id="gear-system-6">
                    <div class="shadow" id="shadow5"></div>
                    <div id="gear5"></div>
                    <div id="gear2"></div>
                </div>
                <div class="shadow" id="shadowweight"></div>
                <div id="chain-circle"></div>
                <div id="chain"></div>
                <div id="weight"></div>
            </div>
        </div>
    </div>
    

    HTML代码

    <div class="book p3d">
        <div class="back-cover p3d">
            <div class="page back flip"></div>
            <div class="page front p3d">
                <div class="shadow"></div>
                <div class="dino"></div>
            </div>
        </div>
        <div class="front-cover p3d">
            <div class="page front flip p3d">
                <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam fermentum nisl quis nulla eleifend dignissim. Curabitur varius lobortis tincidunt. Maecenas gravida, nulla quis luctus imperdiet, ipsum nibh consectetur ante, in sodales massa tortor eget neque. Donec porta ligula massa, id sagittis est. Ut nisl tellus, faucibus nec feugiat ut, laoreet iaculis felis. Suspendisse ultrices mauris vel tellus suscipit commodo. Integer vitae tortor erat. Pellentesque non tempor nisi.</p>
            </div>
            <div class="page back"></div>
        </div>
    </div>
    
    <DIV id=hplogo border="0">
    <DIV id=hplogo-g>
    <DIV id=hplogo-click onclick=google.doodle.go();></DIV>
    <DIV id=hplogo-lcd-screen></DIV>
    <DIV id=hplogo-lcd-icon></DIV><INPUT id=hplogo-lcd-text 
    onclick=this.focus();this.select() readOnly autocomplete="off">
    <DIV id=hplogo-on></DIV>
    <DIV id=hplogo-led></DIV>
    <DIV id=hplogot>电吉他之父莱斯·保罗 96 周年诞辰</DIV></DIV>
    <DIV 
    style="LEFT: -100px; OVERFLOW: hidden; WIDTH: 0px; POSITION: absolute; TOP: -100px; HEIGHT: 0px"><INPUT 
    id=hplogo-i></DIV></DIV>
    

    CSS代码

    #level{
        width:100%;
        height:1px;
        position:absolute;
        top:50%;
    }
    #content{
        text-align:center;
        margin-top:-327px;
    }
    #gears{
        width:478px;
        height:655px;
        position:relative;
        display:inline-block;
        vertical-align:middle;
    }
    #gears-static{
        background:url(FgFnjks.png) no-repeat -363px -903px;
        width:329px;
        height:602px;
        position:absolute;
        bottom:5px;
        right:0px;
        opacity:0.4;
    }
    #title{
        vertical-align:middle;
        color:#9EB7B5;
        width:43%;
        display:inline-block;
    }
    #title h1{
        font-family: 'PTSansNarrowBold', sans-serif;
        font-size:3.6em;
        text-shadow:rgba(0, 0, 0, 0.36) 7px 7px 10px;
    }
    #title p{
        font-family: sans-serif;
        font-size:1.2em;
        line-height:148%;
        text-shadow:rgba(0, 0, 0, 0.36) 1px 1px 0px;
    }
    
    .shadow{
        -webkit-box-shadow: 4px 7px 25px 10px rgba(43, 36, 0, 0.36);
        -moz-box-shadow: 4px 7px 25px 10px rgba(43, 36, 0, 0.36);
        box-shadow: 4px 7px 25px 10px rgba(43, 36, 0, 0.36);
    }
    
    /*gear-system-1*/
    #gear15{
        background: url(FgFnjks.png) no-repeat 0 -993px;
        width: 321px;
        height: 321px;
        position:absolute;
        left:45px;
        top:179px;
    
        -webkit-animation: rotate-back 24000ms linear infinite;
        -moz-animation: rotate-back 24000ms linear infinite;
        -ms-animation: rotate-back 24000ms linear infinite;
        animation: rotate-back 24000ms linear infinite;
    }
    #shadow15{
        width:306px;
        height:306px;
        -webkit-border-radius:153px;
        -moz-border-radius:153px;
        border-radius:153px;
        position:absolute;
        left:52px;
        top:186px;
    }
    #gear14{
        background: url(FgFnjks.png) no-repeat 0 -856px;
        width: 87px;
        height: 87px;
        position:absolute;
        left:162px;
        top:296px;
    }
    #shadow14{
        width:70px;
        height:70px;
        -webkit-border-radius:35px;
        -moz-border-radius:35px;
        border-radius:35px;
        position:absolute;
        left:171px;
        top:304px;
    }
    #gear13{
        background: url(FgFnjks.png) no-repeat 0 -744px;
        width: 62px;
        height: 62px;
        position:absolute;
        left:174px;
        top:309px;
    
        -webkit-animation: rotate 8000ms linear infinite;
        -moz-animation: rotate 8000ms linear infinite;
        -ms-animation: rotate 8000ms linear infinite;
        animation: rotate 8000ms linear infinite;
    }
    #shadow13{
        width:36px;
        height:36px;
        -webkit-border-radius:18px;
        -moz-border-radius:18px;
        border-radius:18px;
        position:absolute;
        left:187px;
        top:322px;
    }
    
    /*gear-system-2*/
    #gear10{
        background: url(FgFnjks.png) no-repeat 0 -184px;
        width: 122px;
        height: 122px;
        position:absolute;
        left:175px;
        top:0;
    
        -webkit-animation: rotate-back 8000ms linear infinite;
        -moz-animation: rotate-back 8000ms linear infinite;
        -ms-animation: rotate-back 8000ms linear infinite;
        animation: rotate-back 8000ms linear infinite;
    }
    #shadow10{
        width:86px;
        height:86px;
        -webkit-border-radius:43px;
        -moz-border-radius:43px;
        border-radius:43px;
        position:absolute;
        left:193px;
        top:18px;
    }
    #gear3{
        background: url(FgFnjks.png) no-repeat 0 -1493px;
        width: 85px;
        height: 84px;
        position:absolute;
        left:194px;
        top:19px;
    
        -webkit-animation: rotate 10000ms linear infinite;
        -moz-animation: rotate 10000ms linear infinite;
        -ms-animation: rotate 10000ms linear infinite;
        animation: rotate 10000ms linear infinite;
    }
    #shadow3{
        width:60px;
        height:60px;
        -webkit-border-radius:30px;
        -moz-border-radius:30px;
        border-radius:30px;
        position:absolute;
        left:206px;
        top:31px;
    }
    
    /*gear-system-3*/
    #gear9{
        background: url(FgFnjks.png) no-repeat -371px -280px;
        width: 234px;
        height: 234px;
        position:absolute;
        left:197px;
        top:96px;
    
        -webkit-animation: rotate 12000ms linear infinite;
        -moz-animation: rotate 12000ms linear infinite;
        -ms-animation: rotate 12000ms linear infinite;
        animation: rotate 12000ms linear infinite;
    }
    #shadow9{
        width:200px;
        height:200px;
        -webkit-border-radius:100px;
        -moz-border-radius:100px;
        border-radius:100px;
        position:absolute;
        left:214px;
        top:113px;
    }
    #gear7{
        background: url(FgFnjks.png) no-repeat -371px 0;
        width: 108px;
        height: 108px;
        position:absolute;
        left:260px;
        top:159px;
    
        -webkit-animation: rotate-back 10000ms linear infinite;
        -moz-animation: rotate-back 10000ms linear infinite;
        -ms-animation: rotate-back 10000ms linear infinite;
        animation: rotate-back 10000ms linear infinite;
    }
    #shadow7{
        width:76px;
        height:76px;
        -webkit-border-radius:38px;
        -moz-border-radius: 38px;
        border-radius: 38px;
        position:absolute;
        left:276px;
        top:175px;
    }
    
    /*gear-system-4*/
    #gear6{
        background: url(FgFnjks.png) no-repeat 0 -1931px;
        width: 134px;
        height: 134px;
        position:absolute;
        left:305px;
        bottom:212px;
    
        -webkit-animation: rotate-back 10000ms linear infinite;
        -moz-animation: rotate-back 10000ms linear infinite;
        -ms-animation: rotate-back 10000ms linear infinite;
        animation: rotate-back 10000ms linear infinite;
    }
    #shadow6{
        width:98px;
        height:98px;
        -webkit-border-radius:49px;
        -moz-border-radius: 49px;
        border-radius: 49px;
        position:absolute;
        left:323px;
        bottom:230px;
    }
    #gear4{
        background: url(FgFnjks.png) no-repeat 0 -1627px;
        width: 69px;
        height: 69px;
        position:absolute;
        left:337px;
        bottom:245px;
    
        -webkit-animation: rotate-back 10000ms linear infinite;
        -moz-animation: rotate-back 10000ms linear infinite;
        -ms-animation: rotate-back 10000ms linear infinite;
        animation: rotate-back 10000ms linear infinite;
    }
    
    /*gear-system-5*/
    #gear12{
        background: url(FgFnjks.png) no-repeat 0 -530px;
        width: 164px;
        height: 164px;
        position:absolute;
        left:208px;
        bottom:85px;
    
        -webkit-animation: rotate 8000ms linear infinite;
        -moz-animation: rotate 8000ms linear infinite;
        -ms-animation: rotate 8000ms linear infinite;
        animation: rotate 8000ms linear infinite;
    }
    #shadow12{
        width:124px;
        height:124px;
        -webkit-border-radius:62px;
        -moz-border-radius:62px;
        border-radius:62px;
        position:absolute;
        left:225px;
        bottom:107px;
    }
    #gear11{
        background: url(FgFnjks.png) no-repeat 0 -356px;
        width: 125px;
        height: 124px;
        position:absolute;
        left:228px;
        bottom:105px;
    
        -webkit-animation: rotate-back 10000ms linear infinite;
        -moz-animation: rotate-back 10000ms linear infinite;
        -ms-animation: rotate-back 10000ms linear infinite;
        animation: rotate-back 10000ms linear infinite;
    }
    #shadow11{
        width:88px;
        height:88px;
        -webkit-border-radius:44px;
        -moz-border-radius:44px;
        border-radius:44px;
        position:absolute;
        left:247px;
        bottom:123px;
    }
    #gear8{
        background: url(FgFnjks.png) no-repeat -371px -158px;
        width: 72px;
        height: 72px;
        position:absolute;
        left:254px;
        bottom:131px;
    
        -webkit-animation: rotate 6000ms linear infinite;
        -moz-animation: rotate 6000ms linear infinite;
        -ms-animation: rotate 6000ms linear infinite;
        animation: rotate 6000ms linear infinite;
    }
    #shadow8{
        width:42px;
        height:42px;
        -webkit-border-radius:21px;
        -moz-border-radius: 21px;
        border-radius: 21px;
        position:absolute;
        left:269px;
        bottom:146px;
    }
    
    /*gear1*/
    #gear1{
        background: url(FgFnjks.png) no-repeat 0 0;
        width: 135px;
        height: 134px;
        position:absolute;
        left:83px;
        bottom:111px;
    
        -webkit-animation: rotate-back 10000ms linear infinite;
        -moz-animation: rotate-back 10000ms linear infinite;
        -ms-animation: rotate-back 10000ms linear infinite;
        animation: rotate-back 10000ms linear infinite;
    }
    #shadow1{
        width:96px;
        height:96px;
        -webkit-border-radius:48px;
        -moz-border-radius:48px;
        border-radius:48px;
        position:absolute;
        left:103px;
        bottom:130px;
    }
    
    /*gear-system-6*/
    #gear5{
        background: url(FgFnjks.png) no-repeat 0 -1746px;
        width: 134px;
        height: 135px;
        position:absolute;
        left:22px;
        top:108px;
    
        -webkit-animation: rotate 10000ms linear infinite alternate;
        -moz-animation: rotate 10000ms linear infinite alternate;
        -ms-animation: rotate 10000ms linear infinite alternate;
        animation: rotate 10000ms linear infinite alternate;
    }
    #shadow5{
        width:96px;
        height:96px;
        -webkit-border-radius:48px;
        -moz-border-radius:48px;
        border-radius:48px;
        position:absolute;
        left:41px;
        top:127px;
    }
    #gear2{
        background: url(FgFnjks.png) no-repeat 0 -1364px;
        width: 80px;
        height: 79px;
        position:absolute;
        left:49px;
        top:136px;
    
        -webkit-animation: rotate-back 10000ms linear infinite alternate;
        -moz-animation: rotate-back 10000ms linear infinite alternate;
        -ms-animation: rotate-back 10000ms linear infinite alternate;
        animation: rotate-back 10000ms linear infinite alternate;
    }
    
    /*weight*/
    #weight{
        background: url(FgFnjks.png) no-repeat -371px -564px;
        width: 34px;
        height: 92px;
        position:absolute;
        left:1px;
        bottom:0;
    
        -webkit-animation: up 10000ms linear infinite alternate;
        -moz-animation: up 10000ms linear infinite alternate;
        -ms-animation: up 10000ms linear infinite alternate;
        animation: up 10000ms linear infinite alternate;
    }
    #shadowweight{
        width:10px;
        height:80px;
        position:absolute;
        left:12px;
        bottom:0px;
    
        -webkit-animation: up 10000ms linear infinite alternate;
        -moz-animation: up 10000ms linear infinite alternate;
        -ms-animation: up 10000ms linear infinite alternate;
        animation: up 10000ms linear infinite alternate;
    }
    
    /*chain*/
    #chain-circle{
        background: url(FgFnjks.png) no-repeat -371px -706px;
        width:146px;
        height:147px;
        position:absolute;
        left:17px;
        top:102px;
    
        -webkit-animation: rotate 10000ms linear infinite alternate;
        -moz-animation: rotate 10000ms linear infinite alternate;
        -ms-animation: rotate 10000ms linear infinite alternate;
        animation: rotate 10000ms linear infinite alternate;
    }
    #chain{
        width:1px;
        height:380px;
        border-left:2px dotted #C8D94A;
        position:absolute;
        left:17px;
        top:175px;
        opacity:0.7;
    
        -webkit-animation: collapse 10000ms linear infinite alternate;
        -moz-animation: collapse 10000ms linear infinite alternate;
        -ms-animation: collapse 10000ms linear infinite alternate;
        animation: collapse 10000ms linear infinite alternate;
    }
    
    /*ANIMATIONS*/
    /*rotate*/
    @keyframes "rotate" {
     from {
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        transform: rotate(0deg);
     }
     to {
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        transform: rotate(360deg);
     }
    }
    
    @-moz-keyframes rotate {
     from {
       -moz-transform: rotate(0deg);
       transform: rotate(0deg);
     }
     to {
       -moz-transform: rotate(360deg);
       transform: rotate(360deg);
     }
    }
    
    @-webkit-keyframes "rotate" {
     from {
       -webkit-transform: rotate(0deg);
       transform: rotate(0deg);
     }
     to {
       -webkit-transform: rotate(360deg);
       transform: rotate(360deg);
     }
    }
    
    @-ms-keyframes "rotate" {
     from {
       -ms-transform: rotate(0deg);
       transform: rotate(0deg);
     }
     to {
       -ms-transform: rotate(360deg);
       transform: rotate(360deg);
     }
    }
    
    @-o-keyframes "rotate" {
     from {
       -o-transform: rotate(0deg);
       transform: rotate(0deg);
     }
     to {
       -o-transform: rotate(360deg);
       transform: rotate(360deg);
     }
    }
    /*rotate-back*/
    @keyframes "rotate-back" {
     from {
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        transform: rotate(0deg);
     }
     to {
        -webkit-transform: rotate(-360deg);
        -moz-transform: rotate(-360deg);
        -o-transform: rotate(-360deg);
        -ms-transform: rotate(-360deg);
        transform: rotate(-360deg);
     }
    }
    
    @-moz-keyframes rotate-back {
     from {
       -moz-transform: rotate(0deg);
       transform: rotate(0deg);
     }
     to {
       -moz-transform: rotate(-360deg);
       transform: rotate(-360deg);
     }
    }
    
    @-webkit-keyframes "rotate-back" {
     from {
       -webkit-transform: rotate(0deg);
       transform: rotate(0deg);
     }
     to {
       -webkit-transform: rotate(-360deg);
       transform: rotate(-360deg);
     }
    }
    
    @-ms-keyframes "rotate-back" {
     from {
       -ms-transform: rotate(0deg);
       transform: rotate(0deg);
     }
     to {
       -ms-transform: rotate(-360deg);
       transform: rotate(-360deg);
     }
    }
    
    @-o-keyframes "rotate-back" {
     from {
       -o-transform: rotate(0deg);
       transform: rotate(0deg);
     }
     to {
       -o-transform: rotate(-360deg);
       transform: rotate(-360deg);
     }
    }
    /*weight up*/
    @keyframes "up" {
     from {
        bottom: 0px;
     }
     to {
        bottom: 340px;
     }
    }
    
    @-moz-keyframes up {
     from {
       bottom: 0px;
     }
     to {
       bottom: 340px;
     }
    }
    
    @-webkit-keyframes "up" {
     from {
       bottom: 0px;
     }
     to {
       bottom: 340px;
     }
    }
    
    @-ms-keyframes "up" {
     from {
       bottom: 0px;
     }
     to {
       bottom: 340px;
     }
    }
    
    @-o-keyframes "up" {
     from {
       bottom: 0px;
     }
     to {
       bottom: 340px;
     }
    }
    /*chain up and down*/
    @keyframes "collapse" {
     from {
        height: 387px;
     }
     to {
        height: 48px;
     }
    }
    
    @-moz-keyframes collapse {
     from {
       height: 387px;
     }
     to {
       height: 48px;
     }
    }
    
    @-webkit-keyframes "collapse" {
     from {
       height: 387px;
     }
     to {
       height: 48px;
     }
    }
    
    @-ms-keyframes "collapse" {
     from {
       height: 387px;
     }
     to {
       height: 48px;
     }
    }
    
    @-o-keyframes "collapse" {
     from {
       height: 387px;
     }
     to {
       height: 48px;
     }
    }
    

    在线演示源码下载

    CSS代码

    .book {
        width: 300px;
        height: 300px;
        margin-top: -150px;
        position: absolute;
        left: 50%;
        top: 50%;
        -webkit-transform: rotateX(60deg);
        -moz-transform: rotateX(60deg);
        -ms-transform: rotateX(60deg);
        -o-transform: rotateX(60deg);
        transform: rotateX(60deg);
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        -o-user-select: none;
        user-select: none;
    }
    .page {
        width: 300px;
        height: 300px;
        padding: 1em;
        position: absolute;
        left: 0;
        top: 0;
        text-indent: 2em;
    }
    .front {
        background-color: #d93e2b;
    }
    .back {
        background-color: #fff;
    }
    .front-cover {
        cursor: move;
        -webkit-transform-origin: 0 50%;
        -moz-transform-origin: 0 50%;
        -ms-transform-origin: 0 50%;
        -o-transform-origin: 0 50%;
        transform-origin: 0 50%;
        -webkit-transform: rotateY(0deg);
        -moz-transform: rotateY(0deg);
        -ms-transform: rotateY(0deg);
        -o-transform: rotateY(0deg);
        transform: rotateY(0deg);
    }
    .front-cover .back {
        background-image: url(mdn.png);
        background-repeat: no-repeat;
        background-position: 50% 50%;
        -webkit-transform: translateZ(3px);
        -moz-transform: translateZ(3px);
        -ms-transform: translateZ(3px);
        -o-transform: translateZ(3px);
        transform: translateZ(3px);
    }
    .back-cover .back {
        -webkit-transform: translateZ(-3px);
        -moz-transform: translateZ(-3px);
        -ms-transform: translateZ(-3px);
        -o-transform: translateZ(-3px);
        transform: translateZ(-3px); 
    }
    .p3d {
        -webkit-transform-style: preserve-3d;
        -moz-transform-style: preserve-3d;
        -ms-transform-style: preserve-3d;
        -o-transform-style: preserve-3d;
        transform-style: preserve-3d;
    }
    .flip {
        -webkit-transform: rotateY(180deg);
        -moz-transform: rotateY(180deg);
        -ms-transform: rotateY(180deg);
        -o-transform: rotateY(180deg);
        transform: rotateY(180deg);
    }
    .dino,
    .shadow {
        width: 196px;
        height: 132px;
        position: absolute;
        left: 60px;
        top: 60px;
        -webkit-transform-origin: 0 100%;
        -moz-transform-origin: 0 100%;
        -ms-transform-origin: 0 100%;
        -o-transform-origin: 0 100%;
        transform-origin: 0 100%;
    }
    .dino {
        background: url(dino.png) no-repeat;
    
    }
    .shadow {
        background: url(shadow.png) no-repeat;
    }
    

    JavaScript代码都以压缩过的,不知情我们有未有方法将精减过的JavaScript代码整理出来?

    JavaScript代码

    (function (window, document) {
    
        var prefixes = ['Webkit', 'Moz', 'ms', 'O', ''],
            book = document.querySelectorAll('.book')[0],
            page = document.querySelectorAll('.front-cover')[0],
            dino = document.querySelectorAll('.dino')[0],
            shadow = document.querySelectorAll('.shadow')[0],
            hold = false,
            centerPoint = window.innerWidth / 2,
            pageSize = 300,
            clamp = function (val, min, max) {
                return Math.max(min, Math.min(val, max));
            };
    
        page.onmousedown = function () {
            hold = true;
        };
    
        window.onmouseup = function () {
            if (hold) {
                hold = false;
            }
        };
    
        window.onresize = function () {
            centerPoint = window.innerWidth / 2;
        };
    
        window.onmousemove = function (evt) {
            if (!hold) {
                return;
            }
    
            var angle = clamp((centerPoint - evt.pageX + pageSize) / pageSize * -90, -180, 0),
                i, j;
    
            for (i = 0, j = prefixes.length; i < j; i++) {
                book.style[prefixes[i] + 'Transform'] = 'rotateX(' + (60 + angle / 8) + 'deg)';
                page.style[prefixes[i] + 'Transform'] = 'rotateY(' + angle + 'deg)';
                dino.style[prefixes[i] + 'Transform'] = 'rotateX(' + (angle / 2) + 'deg)';
                shadow.style[prefixes[i] + 'Transform'] = 'translateZ(1px) skewX(' + (angle / 8) + 'deg)';
            }
        };
    
    })(window, document);
    

    在线演示源码下载

    以上正是HTML5 3D书本翻页动漫的演示代码,有意思味的恋人能够下载完整代码研讨。

    在线演示源码下载

    正文的特效来自Doodle,如能将减削的JavaScript整理出来,作者不胜感谢!

    本文由威尼斯手机平台登陆发布于威尼斯登录首页,转载请注明出处:威尼斯登录首页付费投稿安排,付费投稿安排

    关键词:

上一篇:没有了

下一篇:没有了