-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
35 lines (33 loc) · 814 Bytes
/
Copy pathscript.js
File metadata and controls
35 lines (33 loc) · 814 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
25
26
27
28
29
30
31
32
33
34
35
Shery.mouseFollower();
Shery.makeMagnet(".magnet")
Shery.makeMagnet(".btndiv button")
Shery.hoverWithMediaCircle(".hvr",{videos:["0.mp4","2.mp4","3.mp4"] })
gsap.to(".left-elem",{
scrollTrigger:{
trigger: "#f-images",
pin: true,
start: "top top",
bottom: "bottom bottom",
endTrigger: ".last",
scrub: 1,
},
y:"-300%",
ease:Power1
})
let sections=document.querySelectorAll(".left-elem");
Shery.imageEffect(".images", {
style: 5,
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)
},
});
});
},
});