在vue中使用velocity scroll動畫不執(zhí)行,也沒有錯誤提示。let toElement = document.querySelector(target);
let container = document.querySelector('body');
Velocity(toElement, 'scroll', {
container: container,
duration: 500,
offset: -60,
easing: 'ease-out'});toElement 目標元素,container容器元素
vue如何使用velocity實現(xiàn)錨點滾動?
寶慕林4294392
2018-10-24 12:52:13