three实现鼠标滚轮驱动8个影像带图片相册转动代码

代码语言:html

所属分类:画廊相册

代码描述:three实现鼠标滚轮驱动8个影像带图片相册转动代码

代码标签: three 鼠标 滚轮 驱动 8个 影像带 图片 相册 转动 代码

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

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

<head>
  <meta charset="UTF-8">
  

  
  
  
  
<style>
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #0a1a2a;
    font-family: Arial, sans-serif
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh
}

.infos {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    z-index: 10;
    background: #fff;
    padding: 8px;
    border-radius: 8px;
    font-size: 13px;
    color: #000;
    cursor: pointer
}

.hint {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 10;
    background: rgb(0 0 0 / .8);
    padding: 8px;
    border-radius: 8px;
    opacity: .85;
    font-size: 13px;
    color: #fff
}

.hint a {
    color: #ddc2b5;
    text-decoration: none
}

.copy {
    position: fixed;
    top: 20px;
    left: 20px;
    color: #000;
    background: rgb(255 255 255 / .9);
    padding: 10px;
    border-radius: 5px;
    font-size: 12px;
    z-index: 100
}

.loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    z-index: 1000;
    text-align: center;
    box-shadow: 0 4px 20px rgb(0 0 0 / .15)
}

::-webkit-scrollbar {
    display: none
}
</style>

  <script>
  window.console = window.console || function(t) {};
</script>

  
  
</head>

<body translate="no">
  <div class="loading" id="loading">
    <div id="loadingText">Loading...</div>
    <div id="progressBar" style="width: 200px; height: 4px; background: #ddd; margin-top: 10px; border-radius: 2px;">
        <div id="progressFill" style="width: 0%; height: 100%; background: #666; border-radius: 2px;"></div>
    </div>
</div>
<div id="ui" class="hint">Photo by <a href="https://unsplash.com/fr/@abstralofficial?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText" target="_blank" rel="noopener nofollow">Abstral Official</a> on <a href="https://unsplash.com/fr/@abstralofficial?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText" target="_blank" rel="noopener nofollow">Unsplash</a></div>
<div class="infos" id="lesInfos" onclick="this.style.display='none'">scroll | drag | arrows ← → | Click me to hide.</div>


<script>
    (function() {
    const expandIcon = `<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3"/></svg>`;
    const compressIcon = `<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3"/>&.........完整代码请登录后点击上方下载按钮下载查看

网友评论0