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 Animating SVG with CSS Transitions and Transforms Transitions and Transforms

transform-origin problem.

I have tried transform-origin: 180 180; transform-origin: 180px 180px; transform-origin: 50% 50%; transform-origin: center center; transform-origin: 90px 90px

and it keeps saying that I'm not applying it to star. // .star { transition: transform .8s ease;
transform-origin: 50% 50%; }

It seems that you have to declare transform-origin before transition? Not sure if this is a CSS thing or a bug with the workspace.

1 Answer

I am not sure what browser you are using, but this may help. I posted this in a different response:

Transform is an experimental technology and requires vendor prefixes. Look here under browser compatibility for the various prefixes.