-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscript.js
34 lines (33 loc) · 850 Bytes
/
script.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Shery.mouseFollower();
Shery.makeMagnet(".magnet");
Shery.hoverWithMediaCircle(".hvr",{videos:["./0.mp4", "./2.mp4"]})
/*this is for stoping fright */
gsap.to(".fleftelm", {
scrollTrigger: {
trigger: "#fimages",
pin: true,
start: "top top",
end: "bottom bottom",
endTrigger: ".last",
scrub: 1,
},
y: "-300%",
ease: Power1,
});
let sections = document.querySelectorAll(".fleftelm");
Shery.imageEffect(".images", {
style: 4,
config: { onMouse: { value: 1 } },
slideStyle: (setScroll) => {
sections.forEach(function (section, index) {
ScrollTrigger.create({
trigger: section,
start: "top top",
scrub: 1,
onUpdate: function (prog) {
setScroll(prog.progress + index);
},
});
});
},
});