-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmystyle.css
93 lines (86 loc) · 1.63 KB
/
mystyle.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
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
body{
font-family:"lato",sans-serif;
font-weight: 400;
font-size:16px;
color: red;
padding: 30px;
}
.header{
height: 95vh;
background-image:linear-gradient( to right,#83c47ab7, #b84444af), url(image/philosophy-pt.png);
background-size: cover;
background-position:bottom;
position: relative;
clip-path: polygon(0 0, 100% 0,100% 75vh,0 100%);
}
.logo-box{
position: absolute;
left: 40px;
top: 40px;
}
.logo{
height:90px;
}
.logo:hover {
animation: moveinleft;
}
.mini-header{
color: #fff;
text-transform: uppercase;
backface-visibility: hidden;
}
.mini-header-top{
display:block;
font-weight: 400;
font-size: 60px;
letter-spacing: 25px;
text-transform: uppercase;
animation: moveinleft;
animation-duration: 1s;
}
.mini-header-bottom{
display:block;
font-weight: 1000;
font-size: 40px;
padding-top:20px;
padding-left: 50px;
animation: moveinright;
animation-duration: 1s;
}
.text-box{
position: absolute;
top:40%;
left: 50%;
transform: translate(-50%, -50%);
}
@keyframes moveinleft{
0%{
opacity: 0;
transform: translateX(-100px)
}
50%{
transform: translateX(50px)
}
100%{
opacity: 1;
transform: translateX(0)
}
}
@keyframes moveinright{
0%{
opacity: 0;
transform: translateX(100px)
}
50%{
transform: translateX(-50px)
}
100%{
opacity: 1;
transform: translateX(0)
}
}