Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CSS jQuery Basics (2014) Introduction to jQuery What is jQuery?

Chris Kwong
Chris Kwong
10,266 Points

What's are the advantages of animating using jquery and using css transitions/animations?

In the css animation module in the css fundamentals, we do something really similar. Can't we achieve the same thing by just using css animations?

3 Answers

Here's a great place to check browser compatibility / support of front-end web technologies:

http://caniuse.com/

Hugo Paz
Hugo Paz
15,621 Points

Hi Chris,

I found this to be a good read on the subject.

Oziel Perez
Oziel Perez
61,321 Points

I'm sure this is kind of a late reply to an old question, but I will point out that, at the time of this comment, it would be better to use jQuery animations over CSS3 animations due to the fact that not all browsers support them (particularly IE6 and 7). To maintain compatibility, it's a good idea to use jquery, which is javascript in essence, since those browsers can understand javascript. Eventually CSS3 will become standardized across every browser and so we will be able to use it more freely. Even then though, there's still the matter of certain event handlers (like clicking, page loading, etc.) that CSS can't handle. So to summarize and really answer your question, yes CSS3 can do some of the things jquery can do as far as animations go, but for more control, go with jquery.