js+css实现三维可调节的无限文字跑马滚动代码

代码语言:html

所属分类:动画

代码描述:js+css实现三维可调节的无限文字跑马滚动代码

代码标签: js css 三维 调节 无限 文字 跑马 滚动 代码

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

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

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

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

        body {
            background: #458ecc;
            height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            font-family: 'Segoe UI', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Poppins', sans-serif;
            overflow: hidden;
        }

        .marquee-world {
            width: 120%;
            margin: 0 -10%;
            perspective: 1200px;
            perspective-origin: center center;
            overflow: visible;
            position: relative;
            transition: margin 0.1s ease-out;
        }

        .marquee-rotated-stage {
            width: 100%;
            overflow-x: hidden;
            overflow-y: visible;
            transform-style: preserve-3d;
            transition: transform 0.1s ease-out;
            will-change: transform;
        }

        .marquee-container {
            width: 100%;
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(12px);
            border-top: 2px solid rgba(255, 220, 100, 0.6);
            border-bottom: 2px solid rgba(255, 220, 100, 0.6);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
            cursor: pointer;
        }

        .marquee-track {
            display: flex;
            flex-wrap: nowrap;
            gap: 0;
            width: max-content;
            will-change: transform;
            animation: scrollRightToLeft 25s linear infinite;
        }
        
       
.marquee-track.reverse {
    animation-name: scrollLeftToRight;
}

        .marquee-containe.........完整代码请登录后点击上方下载按钮下载查看

网友评论0