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. In nunc tortor,tempor non pharetra vitae,mattis a purus. Nulla rhoncus vitae metus vel ornare. Nunc augue dui,suscipit ac urna vel,consectetur volutpat ipsum. Nunc ac nulla ut enim laoreet placerat. Sed luctus aliquam purus,sollicitudin
                blandit dui blandit id. Aenean venenatis risus dolor,at viverra urna aliquam non. Morbi sit amet pellentesque justo,eget viverra augue. </p>
            <p>&nbsp;&nbsp;&nbsp;&nbsp;Praesent posuere ultricies orci sit amet lacinia. Suspendisse lacinia scelerisque risus,sodales egestas turpis cursus sed. Proin sed mollis mauris,vitae ultricies nibh. Nulla bibendum leo a mauris luctus,sit amet iaculis
                arcu blandit. Etiam pulvinar,odio et rutrum egestas,elit mi maximus ex,id elementum est tortor id turpis. Duis rhoncus et lorem vel maximus. Aenean at justo sagittis,aliquet eros eget,iaculis magna. Nam non orci congue,dapibus dui eget,sagittis
                nisl. Phasellus venenatis id est et tempor. Aenean condimentum tristique nibh sit amet varius. Vestibulum et lectus quis eros dapibus consectetur nec auctor dolor. Sed euismod eu felis aliquam fermentum. Donec lacinia fringilla erat,at
                eleifend velit tempus at. </p>
            <hr>
            <p>&nbsp;&nbsp;&nbsp;&nbsp;Cras justo turpis,vulputate eget venenatis sit amet,bibendum quis dolor. Cras at interdum libero. Quisque convallis rutrum magna in ultrices. Donec ut magna dolor. <img id="tree" src="//repo.bfw.wiki/bfwrepo/image/61224a9df3505.png">Mauris
                pulvinar ut sapien a posuere. Sed nisi elit,tincidunt vitae magna eu,dapibus suscipit purus. Maecenas tincidunt mollis eros et dictum. Duis est nulla,rhoncus tincidunt velit at,venenatis elementum v.........完整代码请登录后点击上方下载按钮下载查看

网友评论0