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

CSS Transitions & Transforms or JQuery

I have a somewhat personal question to my fellow students or administrators. To create animations on a Web page, would you guys choose CSS Transitions and Transforms or JQuery to attained a desirable effect? I understand somethings can't be achieved with CSS but what are the trade offs of using one instead of the other?

3 Answers

There isn't a lot of downside to using CSS3 animations. It's supported back to IE8, and you can use polyfills or graceful degradation for the edge cases that would occur in older browsers.

jQuery is useful for certain things where CSS3 is not practical. You will probably end up using a combination of the two.

Thank you John, I kind of figured this was the way to go but I just wanted to double check. I didn't want to make the mistake of doing something out of the norm. Ex. someone saying "Oh you should've used JQuery to do that instead."

I agree with John, a combination of the two would be your best bet. Code what you are comfortable with, the end result should be the same :)