Google Interactive Doodle

让人想犯罪 __ 提交于 2019-11-30 09:41:38

Some doodles use Canvas for showing the animations. Different frames, taken from a loaded image are drawn using a timer in javascript.

Some use CSS property background-image. CSS propertybackground-position is changed using a javascript timer to create animation.

Animations are made interactive using more javascript.

e.g: http://www.google.com/logos/2012/hurdles12-hp-sprite.png, http://www.google.com/logos/2012/basketball12-hp-anim.png

epascarello

Do you know how to view the page source code with a debugger? In Google Chrome, just hit F12. Open up the debugger and you can see the files. You will notice a JavaScript file. You can make it more readable by cleaning it up, but it will be compressed variable names.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!