A quick look at CSS3 animations
CSS3 animations are finally becoming a useful tool in the front end developer's kit! Browser support is progressing, however there is no IE support yet (surprised?) and Opera currently doesn't support animations, but may in the future.
Despite the plethora of vendor prefixes to keep track of, one can really pull off some interesting animations; transforms and transitions anyone?
I know... I could have easily used images for the graphical elements and it's really an exorbitant amount of css to accomplish the goal, but where is the fun in that? There is also cpu/gpu use to take into account, but this little example isn't too heavy in that respect.
A couple of neat things about the animation:
- Everything is html/css. No images. Yep, lots of divs/css, but no images. (Thanks Graeme Blackwood for the original css Druplicon, and Red Team Design for the css HTML5 logo)
- @keyframes are super fun! Using percentages for steps, one can work through (I would guess) some very complex animations.
If you're using a modern browser and want to see a CSS3 transition in the wild, resize your browser! Our site uses
transition: all 0.5s ease; to dress up the responsive layout transition.