I want to build a very simple editor which allows a user to transform a background image.
For this purpose I am setting transform
like this:
<img [style.transform]="'translate(50%,50%) rotate(45deg)'">
The problem is that if I set both, translate
and rotate
, the style is not getting applied. I can set them alone but not together.
Is it possible to do this somehow?
Here is a stackblitz