-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
27 lines (22 loc) · 862 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
document.addEventListener('DOMContentLoaded', function () {
const firstName = document.querySelector('.first-name');
const lastName = document.querySelector('.last-name');
const status = document.querySelector('.status');
const parentNila = document.querySelector('.parent-nila');
firstName.addEventListener('animationend', function () {
if (event.animationName === 'typing') {
firstName.classList.add('finished');
lastName.classList.add('typing');
}
});
lastName.addEventListener('animationend', function () {
if (event.animationName === 'typing') {
status.classList.add('finished-a');
parentNila.classList.add('finished-a');
}
});
});
const url = 'https://github.com/devhrvx';
function toGitHub() {
window.open(url, '_blank').focus();
}