-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.css
100 lines (89 loc) · 1.46 KB
/
index.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
body {
background-color:#eee;
width:100%;
margin:0;
animation: colorchange 200s infinite;
animation-delay: 3620s;
}
header {
position:fixed;
left:0;
top:0;
text-shadow:1px 1px 2px #888;
width:100%;
}
h1, h2 {
display:inline-block;
}
h1 {
animation: colorchange 30s infinite;
animation-direction:alternate;
animation-delay:3610s;
}
main {
margin:200px auto;
width:50%;
padding:50px;
font-size:2em;
position:relative;
text-align:justify;
animation: move 20s infinite;
animation-delay: 3640s;
animation-direction:alternate;
transition:.1s;
}
main:hover {
transform:scale(1.1);
}
header, main {
box-shadow: 2px 2px 10px #000;
background-color:#fff;
}
header:hover h2 {
animation:colorchange 100s infinite;
}
footer{
font-size: .9em;
position: absolute;
bottom: 0;
right: 0;
}
@keyframes vibration
{
0% {transform:scale(0.1);}
100% {transform:scale(1);}
}
@keyframes colorchange
{
0% {color:#000;}
30% {color:#c04;}
40% {color:#706;}
50% {color:#007;}
60% {color:#04b;}
70% {color:#0a4;}
80% {color:#1c0;}
80% {color:#b30;}
100% {color:#f00;}
}
@keyframes move {
0% {top:0;left:0;}
25% {top:0;left:-10;}
50% {top:-40px;left:-20px;}
70% {top:0px;left:60px;}
87% {top:50px;left:0px;}
90% {top:-60px;left:20px;}
94% {top:90px;left:-50px;}
95% {top:0px;left:50px;}
97% {top:-90px;left:-20px;}
100% {top:0;left:0;}
}
@media (max-width:600px) {
main {
width:90%;
margin: 100px auto;
padding: 15px;
}
main:hover {
transform:none;
}
}