-
Notifications
You must be signed in to change notification settings - Fork 0
/
name.js
125 lines (101 loc) Β· 3.23 KB
/
name.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
//A jQuery typing animation script
let typed = new Typed("#text3", {
strings: ["Logiciel", "Web π»", "Mobile π±", "Full-Stack π¨πΎβπ»", "Web et Mobile Full-Stack π¨πΎβπ»"],
typeSpeed: 100,
backSpeed: 100,
showCursor: false,
loop: true
});
let typedinf = new Typed("#text4", {
strings: ["Informatique"],
typeSpeed: 100,
backSpeed: 100,
showCursor: false,
loop: true
});
let typedqsj = new Typed("#text5", {
strings: ["Web et Mobile Full-Stack et Integrateur Systeme d'Information π¨πΎβπ»"],
typeSpeed: 200,
backSpeed: 100,
showCursor: false,
loop: false
});
let typedKarate = new Typed("#text6", {
strings: ["Sportif...", "Karateka..."],
typeSpeed: 100,
backSpeed: 100,
showCursor: false,
loop: true
});
//Scrollreveal
const sr = ScrollReveal({
distance: '0px',
duration: 2500,
reset: true
})
sr.reveal('.home-content',{delay:190, origin:'bottom'})
sr.reveal('.qsj .qsj-content .left',{delay:200, origin:'top', distance: '150px'})
sr.reveal('.qsj .qsj-content .right',{delay:200, origin:'bottom', distance: '150px'})
sr.reveal('.competences',{delay:190, origin:'bottom', distance: '50px', reset:false})
// const text1 = document.querySelector('.text-1');
// const text2 = document.querySelector('.text-2');
// const textThird = document.querySelector('.text-3');
// const sm = document.querySelector('.sm');
// window.addEventListener('load', () => {
// const TL = gsap.timeline({paused: true});
// TL.
// staggerFrom(text1, 1, {top: -50, opacity: 0, ease: "power2.out"}, 0.9)
// staggerFrom(text2, 1, {width: 0, ease: "power2.out"}, 0.3, '-=1')
// staggerFrom(textThird, 1, {top: -50, opacity: 0, ease: "power2.out"}, 0.3)
// staggerFrom(sm, 1, { right: -200, opacity: 0, ease: "power2.out"}, 0.3);
// TL.play();
// })
// let i = 0;
// let text3 = "Web & Mobile Full-Stack";
// function progress(){
// if(i<text3.length) {
// document.querySelector("#text3").innerHTML += text3.charAt(i);
// i++;
// setTimeout(progress, 300);
// // if(i==23){
// // document.querySelector("#text3").innerHTML += "<br>";
// // }
// }
// }
// progress();
// let j = 0;
// let text4 = "</Informatique>";
// function progress2(){
// if(j<text4.length) {
// document.querySelector("#text4").innerHTML += text4.charAt(j);
// j++;
// setTimeout(progress2, 400);
// }
// }
// progress2();
// let k = 0;
// let text5 = "Web & Mobile Full-Stack Junior et Integrateur Systeme d'Information";
// function progress3(){
// if(k<text5.length) {
// document.querySelector("#text5").innerHTML += text5.charAt(k);
// k++;
// setTimeout(progress3, 300);
// if(k==23){
// document.querySelector("#text5").innerHTML += "<br>";
// }
// }
// }
// progress3();
// let l = 0;
// let text6 = "sportif...";
// function progress4(){
// if(l<text6.length) {
// document.querySelector("#text6").innerHTML += text6.charAt(l);
// l++;
// setTimeout(progress4, 300);
// if(l==23){
// document.querySelector("#text6").innerHTML += "<br>";
// }
// }
// }
//progress4();