O
O
Oleg2019-10-22 23:01:33
Animation
Oleg, 2019-10-22 23:01:33

How to rotate SVG on its own axis?

Given an SVG image, I'm trying to rotate the gear on its axis, instead it spins around an unknown center to me. What am I doing wrong?
https://codepen.io/olegoriginal/pen/NWWdZeE

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
lagudal, 2019-10-23
@oleg_original

transform-origin: 50% 50%;
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