This file contains hidden or 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 TweenMax from 'gsap' | |
| import store from '../store' | |
| import preload from './preload' | |
| import math from './math' | |
| import Pointer from './Pointer' | |
| import VS from './VS' | |
| import EventBus from './EventBus' | |
| import { Events as GlobalResizeEvents } from './GlobalResize' |
This file contains hidden or 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 store from '../store' | |
| import math from '../utils/math' | |
| import EventBus from '../utils/EventBus' | |
| import { Events as GlobalRAFEvents } from '../utils/GlobalRAF' | |
| import { Events as GlobalResizeEvents } from '../utils/GlobalResize' | |
| class Parallax { | |
| constructor(elems) { | |
| this.elems = elems |
This file contains hidden or 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
| startLoop = () => { | |
| this.loop = setInterval(this.someMethod, 5000) | |
| } | |
| clearLoop = () => { | |
| clearInterval(this.loop) | |
| } | |
| onFocus = () => { | |
| this.startLoop() |
This file contains hidden or 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 sniffer from 'sniffer' | |
| import GlobalRAF from './utils/GlobalRAF' | |
| import Smooth from './scripts/Smooth' | |
| class App { | |
| constructor() { | |
| if (sniffer.isDesktop) { | |
| GlobalRAF.update() |
This file contains hidden or 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 { TimelineLite, Expo } from 'gsap/TweenMax'; | |
| class ScrollAnis { | |
| constructor() { | |
| this.el = document.body; | |
| this.elems = [...this.el.querySelectorAll('[data-scroll]')]; | |
| if (!this.elems) return; | |
| this.cache = null; |
This file contains hidden or 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 config from '../config' | |
| import bindAll from '../utils/bindAll' | |
| import EventBus from '../utils/EventBus' | |
| import { Events as GlobalRAFEvents } from '../utils/GlobalRAF' | |
| import { Events as GlobalMouseEvents } from '../utils/GlobalMouse' | |
| class Magnetic { | |
| constructor() { |
This file contains hidden or 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 bindAll from '../utils/bindAll' | |
| class LazyLoad { | |
| constructor(entries) { | |
| bindAll(this, ['handle']) | |
| this.images = entries | |
| this.options = { |
This file contains hidden or 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 Emitter from 'tiny-emitter' | |
| export default new Emitter() |
This file contains hidden or 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 * as twgl from 'twgl.js' | |
| import TweenMax from 'gsap' | |
| import math from '../utils/math' | |
| import bindAll from '../utils/bindAll' | |
| import config from '../config' | |
| import Bullets from './Bullets' | |
| import EventBus from '../utils/EventBus' | |
| import { Events as GlobalRAFEvents } from '../utils/GlobalRAF' |
This file contains hidden or 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 Emitter from 'tiny-emitter' | |
| export default new Emitter() |