/
githubmirror
/
anime
Обзор
Документация
Войти
/
githubmirror
/
anime
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tests/playground/onscroll/assets/debug.js
75 строк
1 KB
Julian Garnier
4.2.0-beta.0
26 авг 2025, 18:50
26 авг 2025, 18:50
36c932c
Код
Авторство
О чём код?
import { utils, onScroll, createTimeline, animate, } from '../../../../dist/modules/index.js'; animate('#edges .target', { rotate: 360, autoplay: onScroll({ container: '#edges .container', enter: 'bottom top', leave: 'top bottom', sync: 1, debug: true }) }) animate('#edges-inverted .target', { rotate: 360, autoplay: onScroll({ container: '#edges-inverted .container', enter: 'top bottom', leave: 'bottom top ', sync: 1, debug: true }) }) animate('#offsets .target', { rotate: 360, autoplay: onScroll({ container: '#offsets .container', enter: 'bottom-=100 top+=20', leave: 'top+=100 bottom-=20', sync: 1, debug: true }) }) animate('#hori-edges .target', { rotate: 360, autoplay: onScroll({ container: '#hori-edges .container', axis: 'x', enter: 'bottom top', leave: 'top bottom', sync: 1, debug: true }) }) animate('#hori-edges-inverted .target', { rotate: 360, autoplay: onScroll({ container: '#hori-edges-inverted .container', axis: 'x', enter: 'top bottom', leave: 'bottom top', sync: 1, debug: true }) }) animate('#hori-offsets .target', { rotate: 360, autoplay: onScroll({ container: '#hori-offsets .container', axis: 'x', enter: 'right-=120 left+=20', leave: 'left+=120 right-=20', sync: 1, debug: true }) })