5

I'm using a transform scale to resize an image to a size larger than the browser-window. It's a zoom feature for mobile browsers.

transform: 'scale(3)' 

The idea is that you should be able to pan around in the image on a mobile phone. But in Chrome the width of the document is not updated. I believe this is because the scale does not trigger a redrawing. If I apply for example position: absolute; the page will get redrawn.

What is a css-attribute that causes a redraw but does not generally have any effects on the styling?

Himmators
  • 14,278
  • 36
  • 132
  • 223

1 Answers1

0

Try using viewport width and height.

.img{
    width:300vw;
    height:300vh;
}
Akash Gupta
  • 51
  • 1
  • 4