In apple watch site:, you can see the section below when you scroll down a little bit:
The watch in the left is not a static picture but an attractive animation actually. When I view the DOM element in the inspector of Chrome, I find it is a canvas
element:
When I check the downloaded files, I find images like this:
This looks quite cryptic for me. What is the name of the technique apple used here which can generate animation on canvas from cluttered pictures? Is there any libraries for doing this?
Seems to me like they're using a custom algorithm, with each line of the image representing the animation for the relative line of the canvas.
But to confirm and/or simulate it, you should read the JavaScript source code (if it's not obfuscated too much).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With