Skip to content

Commit db5cc03

Browse files
authored
Update small.css
1 parent dc87b60 commit db5cc03

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

css/small.css

+12-5
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,21 @@ nav button {
3636
color: #555;
3737
transition: 1s;
3838
}
39-
@keyframes navbutton {
39+
@keyframes navULshow {
4040
from {opacity: .2;}
4141
to {opacity: 1;}
42+
}
43+
@keyframes navULhide {
44+
from {opacity: 1;}
45+
to {opacity: .2;}
46+
}
4247
nav ul {
4348
list-style-type: none;
4449
padding: 0;
4550
margin: 0;
4651
display: block;
47-
animation-name: navbutton;
48-
animation-duration: 2s;
52+
animation-name: navULshow;
53+
animation-duration: 1s;
4954
}
5055
/* nav ul li {
5156
float: left;
@@ -74,11 +79,13 @@ nav ul li.active a { /* if this were above hover then hover woul
7479
box-shadow: 0 0 16px 0 #5a5a5a inset;
7580
}
7681

77-
nav ul.hide {display: none; }
82+
nav ul.hide {display: none;
83+
animation-name: navULhide;
84+
animation-duration: 1s;
85+
}
7886
nav button.hide {
7987
box-shadow: 0 0 8px 1px #6f6f6f inset;
8088
color: white;
81-
transition: .5s;
8289
}
8390

8491
/*----------- hamburger menu icon --------------*/

0 commit comments

Comments
 (0)