gsap+Observer实现大气全屏鼠标滚动图文幻灯片切换效果代码

代码语言:html

所属分类:幻灯片

代码描述:gsap+Observer实现大气全屏鼠标滚动图文幻灯片切换效果代码

代码标签: gsap Observer大气 全屏 鼠标 滚动 图文 幻灯片 切换

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

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">


    <meta name="viewport" content="width=device-width, initial-scale=1">

    <link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@700&display=swap" rel="stylesheet">

    <style>
        @import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap");
        @import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond&display=swap");
        * {
          box-sizing: border-box;
          user-select: none;
        }
        
        a {
          color: #fff;
          text-decoration: none;
        }
        
        body {
          margin: 0;
          padding: 0;
          height: 100vh;
          color: white;
          background: black;
          font-family: "Cormorant Garamond", serif;
          text-transform: uppercase;
        }
        
        h2 {
          font-size: clamp(1rem, 5vw, 5rem);
          font-weight: 400;
          text-align: center;
          letter-spacing: 0.5em;
          margin-right: -0.5em;
          color: #cccccc;
          width: 90vw;
          max-width: 1200px;
        }
        
        header {
          position: fixed;
          display: flex;
          align-items: center;
          justify-content: space-b.........完整代码请登录后点击上方下载按钮下载查看

网友评论0