This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default function (el) { | |
const canvas = el | |
const ctx = canvas.getContext('2d') | |
const total = 76 | |
const images = [] | |
const size = { x: 0, y: 0, h: 0, w: 0 } | |
let count = 0 | |
let prevCount = undefined |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:root{ | |
--size: 375; | |
} | |
@media (min-width: 769px) { | |
:root{ | |
--size: 1440; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import gsap from 'gsap' | |
export default { | |
data() { | |
return { | |
scroll: 0, | |
scrollCache: null, | |
scrollResizing: false, | |
scrollInited: false, | |
scrollElems: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { evt, store } from '@/core' | |
const { features, device } = store | |
const { isWindows, isFirefox } = device | |
export default function ({ | |
el = window, | |
mouseMultiplier = .6, | |
touchMultiplier = 3, | |
firefoxMultiplier = 20, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import gsap from 'gsap' | |
import ScrollTrigger from 'gsap/ScrollTrigger' | |
import { evt, utils, store } from '@/core' | |
const { qs, qsa, rect } = utils | |
const { bounds } = store | |
export default function (el) { | |
const container = qs('.js-carousel-slides', el) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import gsap from 'gsap' | |
import { evt, utils, store } from '@/core' | |
const { qs, qsa, rect } = utils | |
const { bounds, flags } = store | |
export default function (elems = qsa('[data-smooth-item]')) { | |
let scroll = 0 | |
let isResizing = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import VirtualScroll from 'virtual-scroll' | |
import gsap from 'gsap' | |
const bounds = { | |
ww: window.innerWidth, | |
wh: window.innerHeight | |
} | |
export default class { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { | |
Mesh, | |
Plane, | |
Program, | |
Texture, | |
Vec2 | |
} from '@/lib/ogl' | |
import gsap from 'gsap' |
NewerOlder