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 CSS - Beyond the Basics Understanding CSS Transitions and Transforms Transition Timing Functions and Delays

Raowaa Mahmood
Raowaa Mahmood
3,337 Points

-moz-webkit-o prefixes

Greetings everyone,

I understand the concepts of prefixes for different browsers but do i have to use all three together when working on a source code, eg: for flexbox or transitions?

Thanks

1 Answer

Casey Ydenberg
Casey Ydenberg
15,622 Points

In theory, yes, the vendors' implementations of CSS features can vary so you need to treat each declaration as a new property.

Remember that things move fast on the web: for the specific properties you've mentioned, check out http://caniuse.com/#feat=flexbox and http://caniuse.com/#search=transitions ... vendor prefixes aren't needed for the most part anymore.

When you get a chance, try the Sass course - you'll be able to write mixins and abstract away chunks of CSS so you only have to write those once (or not at all, if you use a framework).

Raowaa Mahmood
Raowaa Mahmood
3,337 Points

Alright! thanks for the links Casey.
I have bookmarked SASS, will move on to it after this course :)

With regards to Sass, we have had good experience with Bourbon Framework for Sass. We have completely moved away from Bootstrap, for the most part, and are more satisfied with the ease with which this works.