js实现滚动鼠标页面卷轴动画效果代码

代码语言:html

所属分类:加载滚动

代码描述:js实现滚动鼠标页面卷轴动画效果代码

代码标签: 鼠标 页面 卷轴 动画 效果

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

<html>
<head>
    <style>
        body {
            background: #333;
            overflow: hidden;
        }

        ::-webkit-scrollbar {
            display: none;
        }

        div {
            margin: 0;
            padding: 0;
            -webkit-transform-style: preserve-3d;
            transform-style: preserve-3d;
            position: absolute;
            z-index: 0;
        }

        #container {
            font-family: UnifrakturMaguntia;
            width: 350px;
            height: 70%;
            max-height: 500px;
            top: 50%;
            left: 50%;
            -webkit-perspective: 5000px;
            perspective: 5000px;
            transform: translate(-50%, -50%) rotateY(20deg);
        }

        #container p {
            padding: 0 5px 0 5px;
        }

        #container hr {
            margin: 0 20px 0 20px;
        }

        .panel-node {
            width: 100%;
        }

        .panel-cutout {
            width: 100%;
            height: 100%;
            overflow: hidden;
        }

        #content {
            -ms-overflow-style: none;
            overflow: -moz-scrollbars-none;
            overflow-y: scroll;
            height: 100%;
        }

        #content, .panel-content {
            background: #fefee0;
        }

        .panel-content {
            -webkit-touch-callout: none;
            -webkit-user-select: none;
            -khtml-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
        }

        .backface > * {
            opacity: 0.25;
        }

        #lorem {
            font-size: 7em;
            float: left;
            color: red;
            border: 1px solid black;
            margin-right: 5px;
        }

        #tree {
            float: right;
            width: 10em;
            height: 10em;
            border: 1px solid black;
            margin: 0 5px 0 2px;
        }
    </style>

</head>
<body>
  <div id="container">
    <div id="content">
        <p>
     .........完整代码请登录后点击上方下载按钮下载查看

网友评论0