If you type in the Google search for the word Zerg Rush, then there will be a drop-down letter O, which will gradually destroy the entire text of the search results. If you look at the source of the page, you can see
<div class="zr_zergling_container" style="-webkit-user-select: none; left: 390px; top: 720.5px; "> <div class="zr_yellow" style="-webkit-transform: rotate(10deg); "></div> <div class="zr_health" style="width: 20px; background-color: rgb(0, 153, 51); visibility: hidden; "></div> </div>
The background of the element is a picture with the letter O. And somewhere in the scripts there is a manipulation of the coordinates and angle of the elements.
There is a desire to repeat the game. What is the easiest way to do this?
- Copy Google Hike - div + js.
- Draw everything on HTML5 canvas (it’s not clear what will happen to the rest of the page text).
- Use built-in SVG.