-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
17 lines (16 loc) · 785 Bytes
/
script.js
File metadata and controls
17 lines (16 loc) · 785 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import { registerScrollHandler, startScrollLoop } from "/scripts/scrollHub.js";
import { changeBgColor } from "/scripts/main.js";
import { initCases, casesScrollEffect, initMobileSlider } from "/scripts/cases.js";
import { heroScrollEffect } from "/scripts/hero.js";
import { playScrollEffect } from "/scripts/play.js";
import { initPlane } from "/scripts/footer.js";
document.addEventListener("DOMContentLoaded", () => {
changeBgColor(registerScrollHandler);
initCases();
heroScrollEffect(".hero", registerScrollHandler);
casesScrollEffect(".cases_desktop", registerScrollHandler);
playScrollEffect(".play", registerScrollHandler);
initPlane(".footer__chat", ".footer__plane");
initMobileSlider(".cases_mobile .cases__wrapper");
startScrollLoop();
});