Saturday, 9 January 2021

How to set zoom on a element using Javascript on Firefox?

I can change a page element on Chrome using zoom

document.getElementById("pane-side").style.zoom = 0.5

Looks like Firefox did not support zoom, when i run the same code nothing happens.

Im searching for how to use zoom on Firefox, and i got this code:

document.getElementById("pane-side").style["-moz-transform"] = "scale(0.5)"

But the result was not what I expected:

enter image description here

Im trying to zoom out the element like on Chrome, any advice?



from How to set zoom on a element using Javascript on Firefox?

No comments:

Post a Comment