/
githubmirror
/
fullPage.js
Обзор
Документация
Войти
/
githubmirror
/
fullPage.js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/js/slides/scrollSlider.js
12 строк
401 B
Alvaro Trigo López
- v4 version
16 мар 2022, 21:03
16 мар 2022, 21:03
902c448
Код
Авторство
О чём код?
import * as utils from '../common/utils.js'; import { SLIDES_WRAPPER_SEL } from "../common/selectors.js"; import { landscapeScroll } from './landscapeScroll.js'; /** * Scrolls the slider to the given slide destination for the given section */ export function scrollSlider(slideElem){ if(slideElem != null){ landscapeScroll(utils.closest(slideElem, SLIDES_WRAPPER_SEL), slideElem); } }