0👍
This is because transform
is not a valid HTMLElement attribute. It is a CSS property of the style
attribute.
So instead of setAttribute()
you need to set the style.transform
equal to this.translate
.
Source:stackexchange.com
0👍
This is because transform
is not a valid HTMLElement attribute. It is a CSS property of the style
attribute.
So instead of setAttribute()
you need to set the style.transform
equal to this.translate
.