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 Grouping and Transforming SVG

Catarina Fernandes
Catarina Fernandes
10,884 Points

Transform-origin behaves differently on chrome and firefox navigator

When following this tutorial, I've tested the results for the gear icon transform in chrome and all seemed ok, but them I've tested it on firefox and the gear icon acts differently in the hover state. It seems that the transform-origin property isn't processed the same way in the two browsers. Any idea on how I can correct this behaviour so that the icons act the same way in different browsers?

2 Answers

Codin - Codesmite
Codin - Codesmite
8,600 Points

Transform-Origin does not work on SVG with percentage values in any version of Firefox older then version 41.

The bug is covered in the track (2 tasks on) "Transform Origin In Firefox".

https://teamtreehouse.com/library/animating-svg-with-css/transitions-and-transforms/transform-origin-in-firefox

Catarina Fernandes
Catarina Fernandes
10,884 Points

Thank's for your answer Ashley =) I've watched the video you refer and now all makes sense

Dusan Zivanovic
Dusan Zivanovic
1,274 Points

Tranform-origin now works in both chrome and firefox, but in my case with values 50% 25%.