Image scale with css

Hello,

In cep panels I was using transform: scale(x) for make zoom on a image, but in uxp doesn’t work

I was trying doing a canvas… but also doesnt work

Do you know how I can scale and image inside a div or img?

Thanks!

IIRC neither canvas nor transform are currently supported. I believe your best option would be to have a correct size image from the beginning or do the scaling using width and height properties :thinking:

1 Like

Finally I did this, scaling widh/height, but now I have problems if the image is big.

React does not show it well… and after some size changes, Adobe Photoshop crashes.

There are news from css transform scale?