animation - rotating svg elements around center -


what doing wrong rotate around center

i set transform-origin of each right in center of square

look here pls https://jsfiddle.net/yqx90or9/1/

group.style.transformorigin = '100px 100px' group.style.transform = 'rotate(90deg)' 

the problem line:

transition: 1s linear 1s; 

when change style, changing transform, changing transform-origin. both animated. result weird behaviour. change to:

transition: transform 1s linear 1s; 

Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -