jquery实现全屏图文视觉差异滚动效果代码

代码语言:html

所属分类:视觉差异

代码描述:jquery实现全屏图文视觉差异滚动效果代码

代码标签: 图文 视觉 差异 滚动 效果

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

<!DOCTYPE html>
<html lang="en">

<head>

   
<meta charset="UTF-8">


   
<link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,300,600'>
   
<link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Playfair+Display:400,700'>

   
<style>
        *, *:before, *:after {
            box-sizing: border-box;
            min-width: 0;
            min-height: 0;
            margin: 0;
            padding: 0;
        }

        body {
            margin: 0;
            width: 100%;
            font-family: "Source Sans Pro";
            font-weight: 400;
            font-style: normal;
            -ms-text-size-adjust: 100%;
            -webkit-text-size-adjust: 100%;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            text-rendering: optimizeLegibility;
        }

        .border-top {
            width: 100%;
            height: 0.75em;
            top: 0;
            width: 0;
            -webkit-animation: ani-width ease-in-out 0.5s 0s both;
            animation: ani-width ease-in-out 0.5s 0s both;
        }
        .border-top:after {
            content: "";
            bottom: 0;
            width: 100%;
            height: 0.75em;
            right: 0;
            -webkit-animation: ani-width ease-in-out 0.5s 1s both;
            animation: ani-width ease-in-out 0.5s 1s both;
        }

        .border-left {
            height: 100%;
            width: 0.75em;
            left: 0;
            bottom: 0;
            -webkit-animation: ani-height ease-in-out 0.5s 1.5s both;
            animation: ani-height ease-in-out 0.5s 1.5s both;
        }
        .border-left:after {
            content: "";
            right: 0;
            top: 0;
            height: 100%;
            width: 0.75em;
            -webkit-animation: ani-height ease-in-out 0.5s 0.5s both;
            animation: ani-height ease-in-out 0.5s 0.5s both;
        }

        .border-top,
        .border-top:after,
        .border-left,
        .border-left:after {
            position: fixed;
            z-index: 9;
            background-color: #fff;
        }

        h2 {
            font-family: "Playfair Display";
            font-weight: 700;
            font-size: 1.75em;
            line-height: 1.2;
        }
@media (min-width: 32em) {
            h2 {
                font-size: 4em;
            }
        }

        hr.sep {
            border: 0px;
            height: 1px;
            background: #fff;
            margin: 1.4em auto;
            width: 3em;
        }

        main > section:nth-child(1):not(.site-menu), main > article:nth-child(1):not(.site-menu) {
            z-index: 2;
        }
        main > section:nth-child(2):not(.site-menu), main > article:nth-child(2):not(.site-menu) {
            z-index: 3;
.........完整代码请登录后点击上方下载按钮下载查看

网友评论0