open/clonse transition no clip
This commit is contained in:
parent
61ee90400e
commit
ba60213b14
16
index.html
16
index.html
@ -379,20 +379,32 @@ nav .button::before, nav .button::after
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
text-transform:uppercase;
|
text-transform:uppercase;
|
||||||
font-weight:900;
|
font-weight:900;
|
||||||
|
transition:left 0.4s;
|
||||||
}
|
}
|
||||||
nav .button::before
|
nav .button::before
|
||||||
{
|
{
|
||||||
|
box-sizing: border-box;
|
||||||
content:"Menu";
|
content:"Menu";
|
||||||
|
transition-delay:0.4s;
|
||||||
|
text-align:right;
|
||||||
|
padding-right:45px;
|
||||||
}
|
}
|
||||||
nav .button::after
|
nav .button::after
|
||||||
{
|
{
|
||||||
content:"Close";
|
content:"Close";
|
||||||
left:-100%;
|
left:100%;
|
||||||
|
transition-delay: 0.4s;
|
||||||
|
text-align:left;
|
||||||
|
padding-left:45px;
|
||||||
}
|
}
|
||||||
[nav-open] nav .button
|
[nav-open] nav .button::before
|
||||||
{
|
{
|
||||||
left:100%;
|
left:100%;
|
||||||
}
|
}
|
||||||
|
[nav-open] nav .button::after
|
||||||
|
{
|
||||||
|
left:0%;
|
||||||
|
}
|
||||||
nav > ul
|
nav > ul
|
||||||
{
|
{
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
Loading…
Reference in New Issue
Block a user