我正在使用带有 wow js 的可滚动 div,例如:
<div class="content-container">
<h1>Some Content</h1>
<h1>Some Content</h1>
<h1>Some Content</h1>
<h1>Some Content</h1>
<h1>Some Content</h1>
<h1>Some Content</h1>
<h1 class="wow bounceIn">Some Content</h1>
</div>
我的 CSS 看起来像这样:
.content-container
height: 20px;
overflow-y:scroll;
问题是wow.js
没有检测到我在 div 中制作的卷轴我发现了其他类似的问题并尝试了
wow = new WOW({scrollContainer:".content-container"});
wow.init()
但这不起作用所以有什么办法可以使这项工作吗?