-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
89 lines (77 loc) · 1.47 KB
/
style.css
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
body{
height: 100vh;
margin: 0;
padding: 0;
background-color: black;
color: white;
}
nav{
display: flex;
padding: 1em;
justify-content: space-between;
align-items: center;
}
nav ul{
display: flex;
list-style-type: none;
gap: 1.5em;
font-family: sans-serif;
}
nav button{
border: none;
background-color: blue;
color: whitesmoke;
padding: .5em 1.5em;
font-size: 18px;
border-radius: .5em;
}
nav ul li{
position: relative;
color: white;
/* color: black; */
display: inline-block;
padding: 0 8px ;
cursor: pointer;
}
nav ul li span{
/* display: block; */
position: absolute;
border-bottom: 3px solid blue;
/* z-index: -1; */
border-radius: 20px;
opacity: 0;
transform: scale(0) translateY(30px);
top: 0;
left: 0;
height: 100%;
width: 100%;
transition: 1s;
background-color: transparent;
padding: 3px;
/* margin: ; */
}
/* Now For Hover Effects */
nav ul li:hover span{
opacity: 1;
transform: scale(1) translateY(0);
}
/* now animation effect for logo */
nav .Logo{
/* position: absolute; */
display: block;
animation-name: ScaleAnimtions;
animation-duration: 1s;
animation-iteration-count: infinite;
animation-timing-function: ease-in-out;
}
@keyframes ScaleAnimtions {
0%{
transform: scale(1);
}
50%{
transform: scale(1.3);
}
100%{
transform: scale(1);
}
}