css+js实现卷纸文字滚动鼠标卷起来效果代码

代码语言:html

所属分类:加载滚动

代码描述:css+js实现卷纸文字滚动鼠标卷起来效果代码

代码标签: css js 卷纸 文字 滚动 鼠标 卷起

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

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

<head>
    <meta charset="UTF-8">
<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:.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><span id="lorem">L</span>orem ipsum dolor sit amet,consectetur adipiscing elit. Integer sagittis nisi urna,a ultrices est facilisis a. Morbi porttitor vulputate odio,eu lacinia nisi. Suspendisse felis sapien,facilisis nec ex in,blandit tincidunt
                tellus. Sed at commodo nunc. In nibh lectus,facilisis nec magna nec,bibendum egestas nunc. Nam varius lorem in fringilla cursus. Integer dignissim,lectus vitae sodales molestie,libero purus malesuada arcu,vitae facilisis nunc dolor non
                mi..........完整代码请登录后点击上方下载按钮下载查看

网友评论0