[英]When I set overflow-y:hidden to element causes scroll reveal animation to not fire
I am using scrollreveal.min.js on my WordPress site. 我在我的WordPress网站上使用scrollreveal.min.js。
Scroll reveal works just fine, but when I attempted to hide the vertical scroll bar that appears during animation (for the section) with 滚动显示效果很好,但是当我尝试隐藏动画(该部分)期间出现的垂直滚动条时,
overflow-y:hidden;
the scroll bar was hidden for the element, but animation on scroll no longer worked for each item. 滚动条已为该元素隐藏,但滚动动画不再适用于每个项目。
Also, one other question, in order for overflow-y:hidden; 另外,还有一个问题,是为了溢出-y:hidden; to work I have to comment out my overflow:auto; 要工作,我必须注释掉我的溢出: is this necessary or is there a way those can work together? 这是必要的还是有一种可以一起工作的方式?
Overflow-y:hidden as per w3 schools "The content is clipped - and no scrolling mechanism is provided". y-溢出:按照w3的学校隐藏:“内容被剪切-不提供滚动机制”。 This means that the content is cut off, as in, you can't scroll anymore. 这意味着内容被切断,因为您不能再滚动。 Kind of like an image when it's cropped, you can't scroll in a cropped image. 有点像裁剪后的图像,无法滚动到裁剪后的图像。 You'll want something like this instead: Hide scroll bar, but still being able to scroll 您将需要这样的东西: 隐藏滚动条,但仍然可以滚动
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.