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

Transitions affecting Media Queries

So I've been messing around with css transitions for elements within the page, and I've noticed some weird unintended transitions for when I resize the page.

I've included a video for reference which you can download here: http://www.sendspace.com/file/ptf4sl

The gist of it is that the transitions I've added to the elements seem to be carrying over to the changes that are being made when the media-queries are applied, so that they have delay and such when size changes are made.

I've added these transition properties (ie. -webkit-transition: 0.1s ease-out 0.1s; ) to the elements that appear messed up in the video. Was wondering if there's a way to negate this weird jumping around when resizing the window?

1 Answer

Nvm I solved this by targeting only specific elements for transition.