| 4 | const context = canvas.getContext("2d"); |
| 5 | |
| 6 | const currentFrame = index => ( |
| 7 | `https://www.apple.com/105/media/us/airpods-pro/2019/1299e2f5_9206_4470_b28e_08307a42f19b/anim/sequence/large/01-hero-lightpass/${index.toString().padStart(4, '0')}.jpg` |
| 8 | ) |
| 9 | |
| 10 | //making animation smooth with preload |
| 11 | const preloadImages = () => { |
no outgoing calls
no test coverage detected