Google’s First Animated Doodle for Newton’s Anniversary

Google changes its logo frequently to celebrate events such as birth anniversaries of well known people, holiday seasons etc. These logos are known as Google Doodle. Today Google is celebrating 366th birthday of Sir Isaac Newton and they have changed the logo on their website. But this time they have added an animated doodle of falling apple. Google believe in simplicity and thus the animated doodle is not a GIF or Flash but simple JavaScript to animate the image.
<img width="384" height="138" border="0" onload="window.lol&amp;&amp;lol();setTimeout(function(){var h=0,v=1,f=document.getElementById('fall'),i=setInterval(function(){if(f){var r=parseInt(f.style.right)+h,b=parseInt(f.style.bottom)-v;f.style.right=r+'px';f.style.bottom=b+'px';if(b>-210){v+=2}else{h=(v>9)?v*0.1:0;v*=(v>9)?-0.3:0}}},25);google.rein&amp;&amp;google.rein.push(function(){clearInterval(i);h=0;v=1})},2000)" style="margin-top: -1.22em;" id="logo" title="Birthday of Sir Isaac Newton" alt="Birthday of Sir Isaac Newton" src="/logos/newton10-tree.jpg"/>
Code language: JavaScript (javascript)
You can access full set of Google Doodle here http://www.google.com/logos/

View Comments

Share
Published by
Viral Patel
Tags: Fun google google doodle

Recent Posts

  • Java

Java URL Encoder/Decoder Example

Java URL Encoder/Decoder Example - In this tutorial we will see how to URL encode/decode…

4 years ago
  • General

How to Show Multiple Examples in OpenAPI Spec

Show Multiple Examples in OpenAPI - OpenAPI (aka Swagger) Specifications has become a defecto standard…

4 years ago
  • General

How to Run Local WordPress using Docker

Local WordPress using Docker - Running a local WordPress development environment is crucial for testing…

4 years ago
  • Java

Create and Validate JWT Token in Java using JJWT

1. JWT Token Overview JSON Web Token (JWT) is an open standard defines a compact…

4 years ago
  • Spring Boot

Spring Boot GraphQL Subscription Realtime API

GraphQL Subscription provides a great way of building real-time API. In this tutorial we will…

5 years ago
  • Spring Boot

Spring Boot DynamoDB Integration Test using Testcontainers

1. Overview Spring Boot Webflux DynamoDB Integration tests - In this tutorial we will see…

5 years ago