V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
Tsuj100
V2EX  ›  程序员

发现一个有趣的网站,有人知道这种效果怎么实现吗

  •  
  •   Tsuj100 · 2023-05-23 10:18:12 +08:00 · 6593 次点击
    这是一个创建于 584 天前的主题,其中的信息可能已经有所发展或是发生改变。
    30 条回复    2023-05-23 19:35:14 +08:00
    xlsama
        1
    xlsama  
       2023-05-23 10:26:19 +08:00
    yawhale
        2
    yawhale  
       2023-05-23 10:27:58 +08:00
    坐蹲
    国内网站应该不会这么弄吧,鼠标往下滑就看见底导航( Mac 电脑),设计有点大胆
    qingnichimi
        3
    qingnichimi  
       2023-05-23 10:29:20 +08:00
    Crawping
        4
    Crawping  
       2023-05-23 10:32:58 +08:00
    文本当作纹理图绑定到 3D Box 上 然后随着滚动移动纹理在顶点上的相对偏移
    weijancc
        5
    weijancc  
       2023-05-23 10:36:00 +08:00
    很酷
    liyang5945
        6
    liyang5945  
       2023-05-23 10:38:13 +08:00
    css3 做的 底部顶部用了 Z 轴
    tiedan
        7
    tiedan  
       2023-05-23 10:39:23 +08:00   ❤️ 3
    说实话看着有一点点头晕的感觉
    molvqingtai
        8
    molvqingtai  
       2023-05-23 10:39:58 +08:00
    滚动用的这个库 https://github.com/studio-freight/lenis ,3D 动画可能是手写的
    iMiata
        9
    iMiata  
       2023-05-23 10:44:10 +08:00
    看成 “有情趣” 了,我有罪...
    paranoia
        10
    paranoia  
       2023-05-23 10:52:52 +08:00   ❤️ 1
    星,星球大战?
    jerfoxu
        11
    jerfoxu  
       2023-05-23 11:20:51 +08:00
    是挺酷的呢
    hanlin85
        12
    hanlin85  
       2023-05-23 11:24:30 +08:00
    我也觉得有点晕
    cyrbuzz
        13
    cyrbuzz  
       2023-05-23 11:31:12 +08:00
    3D 用 perspective+transform 3D 来控制。

    然后同样的 DOM 渲染三遍,中间是正常内容,上下分别是正常内容之外的一定 px 的内容,滚动和初始化的时候计算一下 scrollTop 和 height 完事。
    LavaC
        14
    LavaC  
       2023-05-23 11:32:40 +08:00   ❤️ 1
    只说原理倒是简单:他准备了三套内容,一套正常,其余两套改成不同的透视视角,接着对接一下滚动位置就完成个大概了。
    zhenghuiy
        15
    zhenghuiy  
       2023-05-23 11:51:39 +08:00
    虽然我也喜欢酷的东西,但稍微滚动一下就很晕。。在做到新奇的同时无法保证浏览体验
    paopjian
        16
    paopjian  
       2023-05-23 12:07:02 +08:00
    感觉是做了个类似于轮播图的东西,上下两块做 3d 透视处理,正面就是正常的内容, b 站好多人有这个教程
    Macv1994
        17
    Macv1994  
       2023-05-23 12:15:00 +08:00
    有点像星球大战的片尾?
    QKgf555H87Fp0cth
        18
    QKgf555H87Fp0cth  
       2023-05-23 12:22:03 +08:00
    头晕了
    byp
        19
    byp  
       2023-05-23 12:23:59 +08:00
    data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABr4AAANtCAIAAABJ4ZyVAAAgAElEQVR4nOzdd7hUxdkA8HdOP2f73l7oFsSCFAUEUQE72EtiiUZUjC35UjQmJmpiYjSJacYWe1QUsWIJdlApIiC9w4Xb2/Y9/cx8fxxcr/de4NIt7+/x4dmdM2dmdr1bzrvvzJBMrgX2At00TNveGy0jhBBCCKFvAY6QkBbgeX5/DwShzvQcjcfjPamZzWYvuWxyzcYN26lzzZQrH3zokY4lZ54xsaKi3L+9ePGS+Z8u6PnYurbWtWT75R317T+g6+BXrVy2w2GoqvrEE08cf/zxP/rRj1566SUAmDVrVktLy/nnn//zn//8iiuuGDRoUHl5+b333nvCCSc0NDSMGTNm06ZNJ5544nPPPReLxV5++eWf/vSnlmXtsCMAOGTQ4T2pdtrEM7VA4M03XouGowAQLy4ef9LJLzz7jH+0sbFh1Jgx1b36TH/u2R///KYF8+cPP/roN2e8unb1KgA45bRJoXDkheeeBoBzL7xIUeR1a9d0bPzAgw42TevF55/tyUh6aNSYYw8/4shFCxccceSQhrr6cCQy7dn/Trnuxnff/l88Hh88ZNgjD/4bAM4+70Jd12e+OaNw4pXXXJdOp9euXnXUiJF+nZ/84peMMY7jnnj04WR7e6HmuRd837btGa+8uKfGPGLU6IMPOaShvv7dmW8BwGWTr/rfG280NzUAwGWTr169csX8uZ8MPerogQMHlZSVMcY+ePedCSef8uF77/qnHzdu/EP3/dMw9D01HgA45tixffv2f3Ha1Eg05pdc9IPL35zxSiqZAoCW5qaDBx4y5rgTHn3ofn+QSz9ffMSRQ1atXP7p3DmxoqJLL5/8z7/es6cGc+TQ4UOHD3/s4Qc7lXMcP+X6G+Z98snihQsAYNBhR4wcPfqxhx7wj6pq4JobbvzbPXftqWEU/OjGn8z9+GPLsgRRLBQed8K4+tq69evXZtPpmk0bfnDFlZl05pUXp/lH/++mWx781z896sbjxd+75NIXn3+udkvNbg5jyNDhALB40Wedbm9ft+9O5oFXqQdcYCdWeonlXU8hic/l9m7eTs85/3u8ILww9emed9RtYSe9elWfftop268DO/8mv5f4nzuNjU2vvvb69gu7GjJkiLCXhqUpqiLLnusxYHupC4QQQggh9A3F8wLPcft7FAjtT4sXLwGAIUMGA8DX4cJyp6xfv76tre2ss86aO3euX/Lee+9dd911TU1NhJD//Oc/APDOO+9kMpkLL7wwHo8vWrSIELJmzZpDDz30rLPOuv322+fMmTNs2LA9NZ7LJl8VLypeMH/uoYcedvTIY/xC13HOPv8C//Z/Hrhvc80mP5wEAPV1tclE+7o1a0485bSBgw4VBGHenI8LrYUjkf4DDujYfjgcMc09nHNz6GFHLF70WXV17xXLlmbSmUR7++Qp12qBQCqZ2LRhgxYIbuvEac8+c/Fll1efeNKsD97zS/K57KMPPXjiKaeZugkA5RVV53//Io7jAdhL057fs8N2XdePGwLAU489yhitqu51zgXfEwShsbERAKqrezc0NLz/7ttNjQ0cx084+ZSDDznEr08I2bODKTho4KDjxo0vjPCkUyf6tx/81z8Kda760fXBUKi1tbmpoWH0sceNGj2WENi0YQfhod3EC+L1P/kZABACm2s2da3wgyuujMbiruvujd5FUVq5fOlZ512oaWqh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rbteV7hrYEAyKLMGKRyWb+QEOAJCQdCmIGI0DfIxun3N3z0ep+Tvtf/9Mv7n/7D1Polm9+Zlt2wDL76ZeBLjAEAEcSuhd2jwMk9+jLsOlbHt6kJ513d1rjl4dunAMCUOx7ROsYuv7onYc3qJQBQ1X9g7boVFX0O9AtLho0/8Nwpnbr45ObzqG127bo17wDARU8v8LqkO3T/JHRCuLIRJ1UdNylQ3sfOZ+tnvVb3wYuekdvxiQghhHYeTljeHgKE43lJEE1imdSlNg1qgZCiAIDtOKZt6qapm6bA85qshIMhSZI0Ra0sKU1ls6lcljLQTcO0DJEXQ4GALEkAkM5nDdPSkyZHIKCo0VBYEiWe5wFA4HieI4QQl3oe9UQBZEkKKKrjeZlcLqvnMvmcwPHRcFhTFEmUCCFBTZNEIZFO66bpUq8tk3JcNxQIaKoqiYLtyLpp5Yw8TzhVUXmOJwRs25YkiQMAxvycCwDCgOUNw7RMkRcCWoDnecdxMvlsVs/nDV3g+aJoNKhoAECpRz
    byp
        20
    byp  
       2023-05-23 12:25:20 +08:00
    file:///Users/baiyapeng/Library/Containers/com.bytedance.macos.feishu/Data/Library/Application%20Support/LarkShell/OptimizeImage/6f98f796-ca92-46fa-b83c-f55c8768c7c6.jpeg
    aidchow
        21
    aidchow  
       2023-05-23 14:51:58 +08:00 via iPhone
    啊…刷快了晕的不行🤮
    iyiluo
        22
    iyiluo  
       2023-05-23 14:56:20 +08:00
    动画不太流畅,刷起来晃眼
    zhoupeng199
        23
    zhoupeng199  
       2023-05-23 15:16:36 +08:00
    我猜是把一个页面 copy 成三分分别放在上中下,然后上下做变形,再监听滚动
    zhoupeng199
        24
    zhoupeng199  
       2023-05-23 15:18:16 +08:00
    看了下节点,果然没猜错
    retrocode
        25
    retrocode  
       2023-05-23 15:54:08 +08:00   ❤️ 4
    我简单写了个 demo

    [https://code.juejin.cn/pen/7236203138389114938]( https://code.juejin.cn/pen/7236203138389114938)

    主要起作用的是
    transform-style: preserve-3d;
    perspective: 100px;
    和子元素的 transform

    后续就是绑定滚动条实时修改 transform: translate3d(0px, 10px, 0px); 的值, 就可以实现这个效果了.
    wudi77
        26
    wudi77  
       2023-05-23 15:55:01 +08:00
    快吐了
    hahiru
        27
    hahiru  
       2023-05-23 16:46:48 +08:00
    看得我难受。
    szkoda
        28
    szkoda  
       2023-05-23 16:56:15 +08:00
    划得头晕+1
    xiaojun1994
        29
    xiaojun1994  
       2023-05-23 18:27:21 +08:00
    屮,要吐了,看着是通过 transform 实现的
    xinshoushanglu
        30
    xinshoushanglu  
       2023-05-23 19:35:14 +08:00
    有点晕
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5487 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 08:56 · PVG 16:56 · LAX 00:56 · JFK 03:56
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.