推荐关注
› Meteor
› JSLint - a JavaScript code quality tool
› jsFiddle
› D3.js
› WebStorm
推荐书目
› JavaScript 权威指南第 5 版
› Closure: The Definitive Guide
islujw

想扒一段 canvas 的 js 代码

  •  
  •   islujw · Aug 15, 2017 · 2986 views
    This topic created in 3399 days ago, the information mentioned may be changed or developed.

    此页面 https://www.apple.com/apple-tv/ 在类 .subsection.subsection-siri-commands 区域有一个 Siri 动画,是 canvas 元素通过 js 绘制的动画。

    js 代码应该是在 https://images.apple.com/v/apple-tv/c/built/scripts/main.built.js 文件里,可以搜出 canvas 的 .webgl-object 类名。

    想要扒下来收藏,但一直失败,这个 js 似乎非常复杂,有许多关联的部分。

    4 replies  •  2017-09-12 21:53:47 +08:00
    tvallday
    tvallday
    Aug 16, 2017
    1
    这种就是函数变换嘛。网上大把。
    islujw
    islujw
    OP
    Aug 16, 2017
    2
    @tvallday 哥,弱弱问一句,能解释得通俗易懂一些么。比如这个动画是怎样的原理。
    blackywkl
    blackywkl
    Aug 17, 2017
    3
    可以用纯 css 实现吧
    islujw
    islujw
    OP
    Sep 12, 2017
    4
    @blackywkl 😂什么原理? transform ?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1895 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 07:21 · PVG 15:21 · LAX 23:21 · JFK 02:21
    ♥ Do have faith in what you're doing.