📜  LocomotiveScroll npm - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:14.392000             🧑  作者: Mango

代码示例1
import LocomotiveScroll from 'locomotive-scroll';

const scroll = new LocomotiveScroll({
    el: document.querySelector('[data-scroll-container]'),
    smooth: true
});