-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathparallax.js
More file actions
24 lines (23 loc) · 816 Bytes
/
Copy pathparallax.js
File metadata and controls
24 lines (23 loc) · 816 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
document.addEventListener('DOMContentLoaded', function() {
if (typeof gsap !== 'undefined' && typeof ScrollTrigger !== 'undefined') {
gsap.registerPlugin(ScrollTrigger);
ScrollTrigger.matchMedia({
"(min-width: 768px)": function() {
ScrollTrigger.create({
trigger: ".ring-section",
start: "top top",
endTrigger: "#team-members",
end: "top 80%",
pin: ".pin-box",
pinSpacing: false,
scrub: false,
markers: false
});
},
"(max-width: 767px)": function() {
}
});
} else {
console.error("GSAP or ScrollTrigger not loaded");
}
});