/
githubmirror
/
fullPage.js
Обзор
Документация
Войти
/
githubmirror
/
fullPage.js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/js/scroll/silentMove.js
16 строк
548 B
Alvaro Trigo López
- v4 version
16 мар 2022, 21:03
16 мар 2022, 21:03
902c448
Код
Авторство
О чём код?
import { getOriginals } from "../common/options.js"; import { setScrollingSpeed } from "../speed.js"; import { FP } from '../common/constants'; import { moveTo } from './moveTo.js'; FP.silentMoveTo = silentMoveTo; /** * Moves the page to the given section and slide with no animation. * Anchors or index positions can be used as params. */ export function silentMoveTo(sectionAnchor, slideAnchor){ setScrollingSpeed (0, 'internal'); moveTo(sectionAnchor, slideAnchor); setScrollingSpeed (getOriginals().scrollingSpeed, 'internal'); }