xyxc0673
V2EX  ›  问与答

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

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

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

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

    ---

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

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