-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
50 lines (43 loc) · 1.11 KB
/
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
44
45
46
47
48
49
50
// var preloader = document.getElementById('preloader');
// function loader(){
// preloader.style.display = 'none';
// }
function loop() {
$('#animate').animate({'top': '525'}, {
duration: 800,
complete: function() {
$('#animate').animate({top: 535}, {
duration: 800,
complete: loop});
}});
}
loop();
function newloop() {
$('#laptop').animate({'left': '2'}, {
duration: 1000,
complete: function() {
$('#laptop').animate({left: -2}, {
duration: 1000,
complete: newloop});
}});
}
newloop();
window.onload = (event) => {
let myAlert = document.querySelector('.toast');
let bsAlert = new bootstrap.Toast(myAlert);
bsAlert.show();
}
const text = document.querySelector(".second-text");
const textLoad = () =>{
setTimeout(()=>{
text.textContent = "Developer";
},0);
setTimeout(()=>{
text.textContent = "Freelancer";
},4000);
setTimeout(()=>{
text.textContent = "Designer";
},8000);
}
textLoad();
setInterval(textLoad,12000)