I'm trying to do a function that increases or decreases the size of an object. For this I use transform: scale
. But my object already uses transform: translated3d
to set the position of it. In this way, the css looks like this:
transform: translate3d(-862px, 512px, 0px) scale(0.5, 5);
But when I determine by jQuery a new scale
, it replaces my entire transform.
How to update my transform to a new scale without losing my translated 3d
?
Does anyone have any ideas?