css - overflow:hidden not working with translation in positive direction -
i came across weird thing lately overflow: hidden;
. set element, , want transform elements in translate()
, when translates in negative direction hidden, if translate in positive direction, won't hidden. in desktop browsers it's not showing, can reach little bit of mouse work. , on mobile it's scrolls, worst.
here example showing it: http://cssizer.com/klhlpshw
so i've been working similar day , realized while had
html, body {overflow:hidden; }
...if add position:absolute
or position:relative
html , body, fixes issue.
Comments
Post a Comment