-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
121 lines (110 loc) · 3.48 KB
/
index.html
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Animations Burger icons</title>
<link rel="stylesheet" href="style.css">
<link href="https://fonts.googleapis.com/css?family=Poppins&display=swap" rel="stylesheet">
</head>
<body>
<h1>Animations d'icônes Burger</h1>
<div class="container">
<div class="box">
<div class="contLigne btn1">
<div class="lignes"></div>
<div class="lignes"></div>
<div class="lignes"></div>
</div>
</div>
<div class="box">
<div class="contLigne btn2">
<div class="lignes"></div>
<div class="lignes"></div>
<div class="lignes"></div>
</div>
</div>
<div class="box">
<div class="contLigne btn3">
<div class="lignes"></div>
<div class="lignes"></div>
<div class="lignes"></div>
</div>
</div>
<div class="box">
<div class="contLigne btn4">
<div class="lignes"></div>
<div class="lignes"></div>
<div class="lignes"></div>
</div>
</div>
<div class="box">
<div class="contLigne btn5">
<div class="lignesM"></div>
<div class="lignesM"></div>
<div class="lignesM"></div>
</div>
</div>
<div class="box">
<div class="contLigne btn6">
<div class="lignes"></div>
<div class="lignes"></div>
<div class="lignes"></div>
</div>
</div>
<div class="box">
<div class="contLigne btn7">
<div class="lignes"></div>
<div class="lignes"></div>
<div class="lignes"></div>
</div>
</div>
<div class="box">
<div class="contLigne btn8">
<div class="lignes"></div>
<div class="lignes"></div>
<div class="lignes"></div>
</div>
</div>
<div class="box">
<div class="contLigne btn9">
<div class="lignes"></div>
<div class="lignes"></div>
<div class="lignes"></div>
</div>
</div>
<div class="box">
<div class="contLigne btn10">
<div class="lignes"></div>
<div class="lignes"></div>
<div class="lignes"></div>
</div>
</div>
<div class="box">
<div class="contLigne btn11">
<div class="ligneUnique"></div>
</div>
</div>
<div class="box">
<div class="contLigne btn12">
<div class="lignes"></div>
<div class="lignes"></div>
<div class="lignes"></div>
<div class="lignes"></div>
<div class="lignes"></div>
<div class="lignes"></div>
</div>
</div>
</div>
<script>
const allBtn = document.querySelectorAll('.contLigne');
allBtn.forEach(btn => {
btn.addEventListener('click', () => {
console.log("hello");
btn.classList.toggle('active');
})
})
</script>
</body>
</html>