A
A
Alexander Pankov2019-01-03 16:36:55
css
Alexander Pankov, 2019-01-03 16:36:55

How to make scroll 360 relative to the center of an svg group?

Hello, I posted a demo
https://codepen.io/untca/pen/NeyroK?editors=1100
I have a gear there, I want it to spin relative to its cent (like a car wheel), while behind a piece of paper, but when I I assign css properties to the #wheel element, then I get that it is spinning relative to the center of the ENTIRE SVG, tell me how to fix this, how to make the transform-origin property work only for the gear, so that it stays in place and just spins?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Pankov, 2019-01-03
@PankovAlxndr

transform-box: fill-box;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question