-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.js
29 lines (23 loc) · 745 Bytes
/
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
let intro = document.querySelector('.intro');
let logo = document.querySelector('.logo');
let logoSpan = document.querySelectorAll('.logo-parts');
window.addEventListener('DOMContentLoaded', () => {
setTimeout(() => {
logoSpan.forEach((span, index) => {
setTimeout(() => {
span.classList.add('active');
}, (index + 1) * 100);
});
setTimeout(() => {
logoSpan.forEach((span, index) => {
setTimeout(() => {
span.classList.remove('active');
span.classList.add('fade');
}, (span + 1) * 50);
});
}, 2000);
setTimeout(() => {
intro.style.top = '-100vh';
}, 2300);
});
});