-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
129 lines (105 loc) · 1.81 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
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
122
123
124
125
126
127
128
129
* {
margin: 0;
padding: 0;
/* box-sizing: border-box; */
}
html {
font-size: 10px;
font-family: "Roboto Cn", sans-serif;
}
a {
text-decoration: none;
color: #eee;
}
header {
width: 100%;
height: 100vh;
background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.5)),
url('pic_bg.jpg')
center no-repeat;
background-size: cover;
}
.container{
max-width: 120 rem;
width: 90%;
margin: 0 auto ;
}
body{
overflow-x:hidden;
}
nav{
padding-top: 5rem;
display: flex;
justify-content: space-between;
align-items: center ;
text-transform: uppercase;
font-size: 1.6rem;
}
.owais{
font-size: 3rem;
font-weight: 300;
transform: translateX(-100rem);
animation: slideIn .5s forwards;
}
.owais span{
color: crimson;
}
nav ul{
display: flex;
}
nav ul li{
list-style: none;
transform: translateX(100rem);
animation: slideIn .5s forwards;
}
nav ul li a{
padding: 1 rem 0;
margin: 0 3rem;
position: relative;
letter-spacing: 2px;
}
nav ul li a:last-child{
margin-right: 0;
}
nav ul li:nth-child(1){
animation-delay: 0s ;
}
nav ul li:nth-child(2){
animation-delay: .5s;
}
nav ul li:nth-child(3){
animation-delay: 1s;
}
nav ul li:nth-child(4){
animation-delay: 1.5s;
}
nav ul li a::before,
nav ul li a::after{
content: '';
position: absolute;
width: 100%;
height: 2px;
background-color: crimson;
left: 0;
transform: scaleX(0);
transition: all .5s;
}
nav ul li a::before{
top: 0;
transform-origin: left;
}
nav ul li a::after{
bottom: 0;
transform-origin: right;
}
nav ul li a:hover::before,
nav ul li a:hover::after{
transform: scaleX(1);
}
@keyframes slideIn {
from{
}
to {
transform: translateX(0);
}
}