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

Problem with transition and firefox.

http://jsfiddle.net/kbeps/7/ Can get the transition works in firefox. Obviously, something is wrong. Any suggestions? Thanks.

1 Answer

Chris Shaw
Chris Shaw
26,676 Points

Hi Alan,

The problem is you have commas for your delay instead of a period which Firefox won't parse, also it's best practise to always put the W3C specified property name last in your properties list to ensure backwards and forwards browser support.

#one img {
    -webkit-transition: all 0.2s ease;
    -moz-transition: all 0.2s ease;
    -ms-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    transition: all 0.2s ease;

    width: 100%;
}

#one img:hover {
    -webkit-transform: scale(1.1);
    -moz-transform: scale(1.1);
    -ms-transform: scale(1.1);
    -o-transform: scale(1.1);
    transform: scale(1.1);
}

Thanks! :D