-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
43 lines (38 loc) · 956 Bytes
/
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
const navigation = document.querySelectorAll("#nav");
navigation.forEach((navIcon) => {
navIcon.addEventListener("click", function () {
$([document.documentElement, document.body]).animate(
{
scrollTop: $(navIcon.getAttribute("name")).offset().top,
},
1000
);
});
});
new Typed(".typewritter", {
strings: [
"Desenvolvedor frontend",
"Desenvolvedor backend",
"Admirador de CSS crocante",
"Amante dos animais",
"Biblioteca de memes",
],
smartBackspace: true,
loop: true,
typeSpeed: 90,
backSpeed: 90,
backDelay: 900,
});
$(".cards").paroller();
$("#about").paroller();
$("#projects").paroller();
//analytics events
const links = document.querySelectorAll("a");
links.forEach((link) => {
link.addEventListener("click", function () {
return gtag("event", "click", {
event_category: link.getAttribute("id"),
event_label: link.getAttribute("name"),
});
});
});