Please see https://codepen.io/anon/pen/VzmVNe
.wrapper {
width: 200px; height: 200px; padding: 10px;
border: 1px solid #888; overflow: auto;
}
.scale {
width: 400px; height: 300px;
background-color: red;
transform: scale(0.4);
transform-origin: 0 0; transition: all 0.5s ease-in-out;
}
.scale:hover {
transform: scale(4);
}
Because after transformation the inner div is visually smaller than its wrapper, I would think that the scrollbar will not be visible.
In addition, it behaves differently between Chrome and IE. In IE11, both x- & y-scrollbar are visible, but in Chrome only y-scrollbar is.
Hover over the inner div works as expected.
What I would like to achieve: no visible scrollbar in both IE & Chrome until you hover over the inner div. Is it possible? Thx.