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 triallauren21
3,054 PointsSvg animation still off centre
Hi I am taking the SVG animation course.
I am trying to rotate the gear icon. It still swings and is off centred
.gear-icon, .hammer-icon, .heart-icon { transform-origin: 50% 50%; transform-box: fill-box; }
1 Answer
Gari Merrifield
9,598 PointsWe had some discussions on this a while back. I suspect you are seeing this in Firefox, which apparently went with the written standards, while other browsers did not.
The key to issue is how Firefox is dealing with the use of percentages. Test your page in Chrome or Chromium browser, and see if it appears centered there. If it does, look around the Community and see if you can find that discussion. I believe it was in the discussion area for the lesson where that concept was introduced. ( I think it was late 2017 or early 2018 )
Steven Parker
231,248 PointsSteven Parker
231,248 PointsTo facilitate analysis, post your complete code. Even better, make a snapshot of your workspace and post the link to it here.
A link to the course page you are working with could be helpful also.