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

Valentin Berlin
Valentin Berlin
14,346 Points

CSS issue

(http://codepen.io/anon/pen/Hutzj)

Hello people! I'm working on this small project (see the CodePen) and, apart from many other things :), trying to make the text inside div.artMaintext gradually appear after the div is resized, but for some reason the transition: color 850ms on line 48 is getting ignored.

Is something overriding it somewhere that I fail to see? I use transition without prefixes on lines 14 and 25 as well and it does work, so it doesn't seem to be a browser issue. Any thoughts are much appreciated!

1 Answer

Valentin Berlin
Valentin Berlin
14,346 Points

I figured it out.

It seems that if the initial display property is set to none all the following CSS for the object is not applied. So instead I used minuscule height to hide the div and after that transition started working.