Jared Wein: We knew unicorns could bounce, but now they spin?! |
One of the hidden features of Firefox 29 was a unicorn that bounced around the Firefox menu when it was emptied. The LA Times covered it in their list of five great features of Firefox 29.
Building on the fun, Firefox 32 (released today) will now spin the unicorn when you press the mouse down in the area that unicorn is bouncing.
The really cool thing about the unicorns movement, both bouncing and spinning, and coloring is that this is all completed using pure CSS. There is no Javascript triggering the animation, direction, or events.
The unicorn is shown when the menu’s :empty
pseudo-class is true. The direction and speed of the movement is controlled via a CSS animation that moves the unicorn in the X- and Y-direction, with both moving at different speeds. On :hover
, the image of the unicorn gets swapped from grayscale to colorful. Finally, :active
triggers the spinning.
http://msujaws.wordpress.com/2014/09/02/we-knew-unicorns-could-bounce-but-now-they-spin/
Комментировать | « Пред. запись — К дневнику — След. запись » | Страницы: [1] [Новые] |