How does google do the barrel roll?

后端 未结 8 1856
不思量自难忘°
不思量自难忘° 2021-01-31 02:29

If you Google, \'do a barrel roll\', the whole page does a 360 rotation. Does anyone have any guesses as to how Google is doing this? I disabled javascript, and it still occurre

8条回答
  •  别跟我提以往
    2021-01-31 03:08

    It's a CSS Transition: https://developer.mozilla.org/en/CSS/CSS_transitions

    -moz-transform: rotate(360deg);
    -moz-transition-property: all;
    -moz-transition-duration: 5s;
    

    Example for Mozilla above, use -o and -webkit to target other browsers.

提交回复
热议问题