xyxc0673
V2EX  ›  问与答

Ping++ 首页的轮播图是怎么实现的?

  •  
  •   xyxc0673 · Jun 19, 2019 · 2331 views
    This topic created in 2561 days ago, the information mentioned may be changed or developed.

    效果看起来不错,有人知道是怎么实现的吗?或者有类似的开源项目吗?

    6 replies    2019-06-19 15:57:04 +08:00
    coolair
        1
    coolair  
       Jun 19, 2019
    F12 不能扒下来吗?
    xyxc0673
        2
    xyxc0673  
    OP
       Jun 19, 2019
    @coolair #1
    js 代码已经加密了,阅读起来困难
    letitbesqzr
        3
    letitbesqzr  
       Jun 19, 2019
    @xyxc0673 #2 没加密啊?就是普通的压缩了?看 slideScene 函数。目测用了 GSAP 这东西。

    ---

    GSAP ( http://greensock.com/gsap )的全名是 GreenSock Animation Platform,这个名字是有些怪异(官网还在各种安利你加入它的 Club ),但它的确是一个从 flash 时代一直发展到今天的专业动画库。
    Sapp
        4
    Sapp  
       Jun 19, 2019
    他那个设备的图,不是背景,而是 css 写的,这样就明白了吧? 中间是 css 渐变做的变动效果
    xyxc0673
        5
    xyxc0673  
    OP
       Jun 19, 2019
    @letitbesqzr #3
    说错了...应该是被混淆了?
    目测确实是用了 GSAP 这个 JS 插件。

    @Sapp #4
    这样一想明白了,感觉实现起来还是有一定难度的。
    hoythan
        6
    hoythan  
       Jun 19, 2019
    缺的不是技术,是素材。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5697 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 06:17 · PVG 14:17 · LAX 23:17 · JFK 02:17
    ♥ Do have faith in what you're doing.