A Very Simple CSS Background Zoom
A really easy method of creating a CSS background image zoom. Not only is this simple, it comes with wide browser support.
See the Pen A very simple CSS background zoom by Tipue () on CodePen.
There's two divs.
There's an outer div that sets the height and/or width of the background. There has to be a set value for either
overflow value hides anything outside the bounds of the outer div, which is how it works.
The inner div hover has a
transform value that zooms in by 20%.
Browsers that support
transform include Chrome 49+, IE11+, Edge 16+, Firefox 59+, Safari 11.1+, iOS Safari 10.3+ and Chrome for Android 66+.
More from Tipue