-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
37 lines (25 loc) · 808 Bytes
/
script.js
File metadata and controls
37 lines (25 loc) · 808 Bytes
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
setTimeout(()=>{
document.getElementById("pre").remove();
document.getElementById("main").style.display = "block";
},3000)
function displayMenu()
{
var x = document.getElementById("navigationbar").style.display;
if(x=="none")
{
document.getElementById("navigationbar").style.display = "flex";
}
else
{
const animate1=[
{ transform: 'translateX(0px)' , opacity:'1'},
{transform: 'translateX(470px)' , opacity:'0'}
];
const animate2={
duration:250,
iteration:1
}
document.getElementById("navigationbar").animate(animate1,animate2);
setTimeout(()=>{document.getElementById("navigationbar").style.display = "none";},200);
}
}