javascript - Workout width and heigh for transform scale -
document.getelementbyid("wrapper").style.transform = "scale(1, 1)"; so above line of code scales wrapper div (which covers whole viewport. whole page) , scales it.
i'm wondering, how can work out width , height of viewport i'm on , scale relevant that?
so if i'm on ipad scale div correct size , if i'm on desktop scale size?
thank you!
Comments
Post a Comment