B
B
boberskyibohdan2018-06-04 15:38:36
css
boberskyibohdan, 2018-06-04 15:38:36

Why css transform doesn't work correctly in svg?

The transformation works, but the object is shifting, I don’t even know how to do it anymore. The circle must spin non-stop non-stop
Video

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Timofeev, 2018-06-04
@boberskyibohdan

Isn't it easier to throw a code into the sandbox than to make a video? Because it's easier to understand in the sandbox.
Therefore, only an assumption:
You do not correctly represent the pivot point. Elements do not rotate about their center, as we would all like. Read this article, I think it will become clear: https://css-tricks.com/transforms-on-svg-elements/

D
Dmitry Khristoev, 2018-09-10
@Haoss

https://www.youtube.com/watch?v=xxZzGOBkDP8

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question