-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.js
41 lines (31 loc) · 1.02 KB
/
app.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
(function () {
[...document.querySelectorAll(".control")].forEach(button => {
button.addEventListener("click", function() {
document.querySelector(".active-btn").classList.remove("active-btn");
this.classList.add("active-btn");
document.querySelector(".active").classList.remove("active");
document.getElementById(button.dataset.id).classList.add("active");
})
});
const linkWork = document.querySelectorAll('.work-item')
function activeWork(){
linkWork.forEach(l=> l.classList.remove('active-work'))
this.classList.add('active-work')
}
linkWork.forEach(l=> l.addEventListener("click", activeWork))
let mixerPortfolio = mixitup('.portfolios', {
selectors: {
target: '.portfolio-item'
},
animation: {
duration: 300
}
});
let type = new Typed ('.auto-input', {
strings: ['Web-Developer...', 'UI Designer...', 'Content-Writer...'],
typeSpeed: 100,
backSpeed: 65,
backDelay: 1000,
loop: true,
})
})();