-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
76 lines (68 loc) · 3.27 KB
/
index.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
const form = document.querySelector('form');
form.addEventListener('submit', (e) => {
e.preventDefault();
const name= form.name.value;
console.log(name)
const email= form.email.value;
console.log(email)
const message= form.message.value;
console.log(message);
window.location.href = 'mailto:abhishek.btech.ec18@iiitranchi.ac.in?subject=Hi, I am -' + name + ' (' + email + ')' + '&body=' + message +'&cc=Abhishek@letskhabar.com&bcc='+email;
// swal("Sucess!");
})
document.querySelector('.twitter').addEventListener('click', () => window.location.href = "https://twitter.com/amazing__ak")
document.querySelector('.facebook').addEventListener('click', () => window.location.href = "https://www.facebook.com/AmazingAK")
document.querySelector('.github').addEventListener('click', () => window.location.href = "https://github.com/Abhishekkr93")
document.querySelector('.instagram').addEventListener('click', () => window.location.href = "https://instagram.com/amazing__ak")
document.querySelector('.dev').addEventListener('click', () => window.location.href = "https://dev.to/amazing__ak")
document.querySelector('.linkedin').addEventListener('click', () => window.location.href = "https://www.linkedin.com/in/abhishek-kumar-544057174")
document.querySelector('.mail').addEventListener('click', () => window.location.href = 'mailto:abhishek.btech.ec18@iiitranchi.ac.in')
// gsap.timeline({
// scrollTrigger: {
// trigger: ".about",
// pin: false, // pin the trigger element while active
// start: "top center", // when the top of the trigger hits the top of the viewport
// end: "bottom center", // end after scrolling 500px beyond the start
// scrub: true, // smooth scrubbing, takes 1 second to "catch up" to the scrollbar
// markers: true,
// }
// })
// .from(".about", {opacity: 0})
gsap.timeline({
scrollTrigger: {
trigger: ".main",
pin: false, // pin the trigger element while active
start: "top bottom", // when the top of the trigger hits the top of the viewport
end: "bottom center", // end after scrolling 500px beyond the start
scrub: true, // smooth scrubbing, takes 1 second to "catch up" to the scrollbar
markers: false,
}
})
.from(".main", {scale:0.8})
.from(".main", {opacity:0.5})
gsap.timeline({
scrollTrigger: {
trigger: ".project",
pin: false, // pin the trigger element while active
start: "top bottom", // when the top of the trigger hits the top of the viewport
end: "bottom center", // end after scrolling 500px beyond the start
scrub: true, // smooth scrubbing, takes 1 second to "catch up" to the scrollbar
markers: false,
}
})
.from(".project", {scale:0.8})
.from(".project", {opacity:0.5})
gsap.timeline({
scrollTrigger: {
trigger: "footer",
pin: false, // pin the trigger element while active
start: "top bottom", // when the top of the trigger hits the top of the viewport
end: "bottom center", // end after scrolling 500px beyond the start
scrub: true, // smooth scrubbing, takes 1 second to "catch up" to the scrollbar
markers: false,
}
})
.from("footer", {scale:0.8})
.from("footer", {opacity:0.5})
gsap.from(".right", {y: -500, duration: 3});
gsap.from(".left", {x: -500, duration: 2, delay : 1});