-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
49 lines (34 loc) · 1.13 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
var email= document.getElementById("email");
var form= document.getElementById("form-contain");
var div_button= document.getElementById("div-email");
var cerrar= document.getElementById("cerradura");
var change=2;
cerrar.addEventListener("click", evento_cerrar);
email.addEventListener("click", evento);
function evento(){
form.classList.toggle("change-display");
div_button.classList.toggle("exit-display");
change=0;
console.log(form);
}
function evento_cerrar(){
form.classList.remove("fadeInDown");
form.classList.add("fadeInUp");
div_button.classList.toggle("exit-display");
change=1;
console.log(form);
setTimeout("espera()",400);
}
function espera(){
form.classList.remove("change-display");
form.classList.remove("fadeInUp");
form.classList.add("fadeInDown");
}
var barra= document.getElementById("barra");
var burguer=document.getElementById("burguer");
burguer.addEventListener("click", touch_burguer);
function touch_burguer(){
barra.classList.toggle("display-active");
barra.classList.toggle("fadeInUp2");
console.log(barra);
}