There are “N” number of Google hidden tricks like Google Sphere fun, Google Looses Its Gravity, Draw Heart Shape In Google and “Do a barrel roll” trick is one among them.
Just type “Do a barrel roll” into Google and voila, your screen will do a barrel roll, which means it will basically do a flip turn like how the accelerometer on an iPhone would make your page turn if you turned your phone. The effect will even work if you type “Z or R twice”.
Reason Behind “Do a Barrel Roll” Trick:
Google frequently introduces new Google doodle and entertains its users. Doodles are the fun, surprising, and sometimes spontaneous changes that are made to the Google logo to celebrate holidays, anniversaries, and the lives of famous artists, pioneers, and scientists.
And “Do a Barrel Roll” trick is homage to a 1997 Nintendo Game, Star Fox 64, where Peppy, the game’s space rabbit tells Fox McCloud, the game’s protagonist to “do a barrel roll”, which you make him do by pressing ‘z’ or ‘r’ twice.
The trick was created using HTML5, so it may not work in all browsers, though Firefox and Chrome will make it roll.