My current challenge involves using a Script to Scale a Div while maintaining the aspect ratio. The objective is to ensure that 100% of the DIV remains visible while maximizing its size. As you scale the browser width, the div adjusts its height to 100%, and when you scale the browser height, it adjusts its width to 100%. Hopefully, my explanation is clear.
Currently, I am utilizing javascript/jquery to detect this and modify some CSS values:
"position": "fixed",
"-webkit-transform": "translateZ(0)",
"-ms-transform": "translateZ(0)",
"zoom": (scaleY * 100) + "%"
You can view the implementation here:
Ever since the recent Firefox update, the functionality no longer works in Firefox specifically. All other browsers seem to be functioning correctly. I have yet to find a solution for this issue as I'm unsure where to begin. Perhaps there is a simpler CSS-only solution available.
Any assistance would be greatly appreciated.