Testing a new style of hamburger menu, CSS based
This commit is contained in:
parent
4635a88742
commit
8054ba680f
@ -13,8 +13,9 @@
|
||||
<body>
|
||||
<header>
|
||||
<nav>
|
||||
<a href="javascript:void(0);" onclick="mobilemenu()" class="mobile-menu-open">☰︎</a>
|
||||
<a href="javascript:void(0);" onclick="mobilemenu()" class="mobile-menu-close">╳︎</a>
|
||||
<div id="hamburger">
|
||||
<div class="container" onclick="mobilemenu()"><div class="bar1"></div><div class="bar2"></div><div class="bar3"></div></div>
|
||||
</div>
|
||||
<ul>
|
||||
<li class="title"><a href="index.html">Ginou</a></li>
|
||||
<li class="selected"><a href="biographie.html">Biographie</a></li>
|
||||
|
@ -20,8 +20,9 @@
|
||||
<body>
|
||||
<header>
|
||||
<nav>
|
||||
<a href="javascript:void(0);" onclick="mobilemenu()" class="mobile-menu-open">☰︎</a>
|
||||
<a href="javascript:void(0);" onclick="mobilemenu()" class="mobile-menu-close">╳︎</a>
|
||||
<div id="hamburger">
|
||||
<div class="container" onclick="mobilemenu()"><div class="bar1"></div><div class="bar2"></div><div class="bar3"></div></div>
|
||||
</div>
|
||||
<ul>
|
||||
<li class="title"><a href="index.html">Ginou</a></li>
|
||||
<li><a href="biographie.html">Biographie</a></li>
|
||||
|
@ -13,8 +13,9 @@
|
||||
<body>
|
||||
<header>
|
||||
<nav>
|
||||
<a href="javascript:void(0);" onclick="mobilemenu()" class="mobile-menu-open">☰︎</a>
|
||||
<a href="javascript:void(0);" onclick="mobilemenu()" class="mobile-menu-close">╳︎</a>
|
||||
<div id="hamburger">
|
||||
<div class="container" onclick="mobilemenu()"><div class="bar1"></div><div class="bar2"></div><div class="bar3"></div></div>
|
||||
</div>
|
||||
<ul>
|
||||
<li class="title"><a href="index.html">Ginou</a></li>
|
||||
<li><a href="biographie.html">Biographie</a></li>
|
||||
|
@ -18,8 +18,9 @@
|
||||
<body>
|
||||
<header>
|
||||
<nav>
|
||||
<a href="javascript:void(0);" onclick="mobilemenu()" class="mobile-menu-open">☰︎</a>
|
||||
<a href="javascript:void(0);" onclick="mobilemenu()" class="mobile-menu-close">╳︎</a>
|
||||
<div id="hamburger">
|
||||
<div class="container" onclick="mobilemenu()"><div class="bar1"></div><div class="bar2"></div><div class="bar3"></div></div>
|
||||
</div>
|
||||
<ul>
|
||||
<li class="title"><a href="index.html">Ginou</a></li>
|
||||
<li><a href="biographie.html">Biographie</a></li>
|
||||
|
@ -14,8 +14,7 @@
|
||||
<header>
|
||||
<nav>
|
||||
<div id="hamburger">
|
||||
<a href="javascript:void(0);" onclick="mobilemenu()" class="mobile-menu-open">☰︎</a>
|
||||
<a href="javascript:void(0);" onclick="mobilemenu()" class="mobile-menu-close">╳︎</a>
|
||||
<div class="container" onclick="mobilemenu()"><div class="bar1"></div><div class="bar2"></div><div class="bar3"></div></div>
|
||||
</div>
|
||||
<ul>
|
||||
<li class="title selected"><a href="index.html">Ginou</a></li>
|
||||
|
@ -15,8 +15,9 @@
|
||||
<body>
|
||||
<header>
|
||||
<nav>
|
||||
<a href="javascript:void(0);" onclick="mobilemenu()" class="mobile-menu-open">☰︎</a>
|
||||
<a href="javascript:void(0);" onclick="mobilemenu()" class="mobile-menu-close">╳︎</a>
|
||||
<div id="hamburger">
|
||||
<div class="container" onclick="mobilemenu()"><div class="bar1"></div><div class="bar2"></div><div class="bar3"></div></div>
|
||||
</div>
|
||||
<ul>
|
||||
<li class="title"><a href="index.html">Ginou</a></li>
|
||||
<li><a href="biographie.html">Biographie</a></li>
|
||||
|
@ -13,8 +13,9 @@
|
||||
<body>
|
||||
<header>
|
||||
<nav>
|
||||
<a href="javascript:void(0);" onclick="mobilemenu()" class="mobile-menu-open">☰︎</a>
|
||||
<a href="javascript:void(0);" onclick="mobilemenu()" class="mobile-menu-close">╳︎</a>
|
||||
<div id="hamburger">
|
||||
<div class="container" onclick="mobilemenu()"><div class="bar1"></div><div class="bar2"></div><div class="bar3"></div></div>
|
||||
</div>
|
||||
<ul>
|
||||
<li class="title"><a href="index.html">Ginou</a></li>
|
||||
<li><a href="biographie.html">Biographie</a></li>
|
||||
|
@ -89,35 +89,32 @@ header nav .mobile-menu-close {
|
||||
position:absolute;
|
||||
}
|
||||
|
||||
header nav #hamburger .mobile-menu-open {
|
||||
display:block;
|
||||
}
|
||||
|
||||
header nav.active #hamburger .mobile-menu-open {
|
||||
display:none;
|
||||
}
|
||||
|
||||
header nav.active #hamburger .mobile-menu-close {
|
||||
display:block;
|
||||
}
|
||||
|
||||
/*header nav .mobile-menu-open {
|
||||
display:block;
|
||||
position:absolute;
|
||||
right:1rem;
|
||||
font-size:1.5rem;
|
||||
header nav #hamburger .container {
|
||||
display:inline-block;
|
||||
cursor:pointer;
|
||||
line-height:2rem;
|
||||
}*/
|
||||
|
||||
/*header nav.active .mobile-menu-close {
|
||||
display:block;
|
||||
position:absolute;
|
||||
right:1rem;
|
||||
font-size:1.5rem;
|
||||
cursor:pointer;
|
||||
line-height:2.5rem;
|
||||
}*/
|
||||
}
|
||||
|
||||
header nav #hamburger .bar1,
|
||||
header nav #hamburger .bar2,
|
||||
header nav #hamburger .bar3 {
|
||||
width:35px;
|
||||
height:3px;
|
||||
background-color:#38686A;
|
||||
margin:6px 0;
|
||||
transition:0.4s;
|
||||
}
|
||||
|
||||
header nav.active #hamburger .bar1 {
|
||||
transform:rotate(-45deg) translate(-4.5px, 6px);
|
||||
}
|
||||
|
||||
header nav.active #hamburger .bar2 {
|
||||
opacity:0;
|
||||
}
|
||||
|
||||
header nav.active #hamburger .bar3 {
|
||||
transform:rotate(45deg) translate(-5px, -9.5px);
|
||||
}
|
||||
|
||||
header nav ul li {
|
||||
display:none;
|
||||
|
Loading…
Reference in New Issue
Block a user