25 12 / 2011
Happy Holidays From Badass JavaScript!
Merry Christmas and Happy Holidays from Badass JavaScript! I made an animated holiday greeting card for you all to enjoy, so check that out. It is built entirely with SVG and CSS animations, so it is entirely scalable and should even work great on the iPhone! I had originally animated the snowflakes as part of the embedded SVG document using JavaScript, but this turned out to be very very slow and used something like 98% CPU. I guess SVG performance is something browsers still need to work on in 2012! The result of this, is that I switched the snowflakes to image elements that load the individual SVG snowflake images, and are animated with CSS animations. This led to a very big performance speedup, especially in Safari.
Well, that’s all for now! Gotta get back to enjoying Christmas, and you should too! Once again, Happy Holidays from Badass JavaScript!
