使用 Locomotive Smooth 滚动,滚动工作正常,当滚动回顶部时出现问题,即使 CSS 检查不透明度为 1,标题也不会可见,所以不确定为什么标题不可见。
另一个奇怪的行为,如果我在开发控制台上取消勾选并勾选任何 CSS,或者如果我从关键字中选择全部,那么标题就会可见,如果我调整浏览器的大小,那么标题就会可见。
let options = { el: document.querySelector('[data-scroll-container]'), smooth: true, getSpeed: true, getDirection: true, reloadOnContextChange: true }
const scroll = new LocomotiveScroll(options);
标题有数据滚动数据滚动部分