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

Kate C
Kate C
13,589 Points

SVG transform origin and ... the why are the star circles off from the star while turing?

Hello everyone,

I've tried to set the transform-origin using cx cy as well as different proportions, but it is not turning properly. Also why are the star circles off from the star while turing?

https://codepen.io/bookmonster/pen/793f4315a6f499fc72aa5801570950f0

1 Answer

Steven Parker
Steven Parker
231,261 Points

Try this setting:

.badge * {
  transform-origin: center;
  transform-box: fill-box; 
}