Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS

Is the decision to use CSS-SVG animations over GIF animations just a matter of preference or performance also?

These animations are great. I think most of this could be accomplished using GIF layers in Photoshop or something too.

1 Answer

Resolution independent is why CSS and SVG animations would be preferred over GIF. File size may be a benefit, but not always.

But SVG's will always be resolution independent, which is super critical with all the high res mobile displays coming out, 4K monitors, and even 5K monitors on the market now. A GIF will degrade in resolution pretty fast.

It's the same problem, and forever will be between vector and raster images. Some things can't be animated in SVG, some things always should be.