-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathanimations.css
167 lines (143 loc) · 3.18 KB
/
animations.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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
/* Fade in animations and particles */
.fade-in{
opacity: 0;
transition: opacity 0.65s ease-in;
}
.fade-in.active {
opacity: 1;
}
#particles-js {
position: fixed;
width: 100%;
height: 100%;
background-repeat: no-repeat;
background-position: 50% 50%;
z-index: -1;
}
/* Heading and home button click and hover animations */
.headinglink {
color: rgb(255, 0, 0);
text-shadow: 0 4px 20px rgba(255, 255, 255, 0.3); /*4 20*/
letter-spacing: 2px;
font-size: 35px;
font-weight: 800;
text-align: center;
text-decoration: none;
transition: .2s;
background: none;
position: relative;
border: none;
&:hover {
background-color: rgba(201, 201, 201, 0.37);
padding: 2px 13px;
transform: translate(0%, -1%);
transition: 0.2s;
}
&:active {
background-color: rgba(255, 255, 255, 0.466);
transform: translateY(0);
transition: all 100ms;
/* Shorter transition for active */
&:after {
opacity: 1;
transition: 0ms;
/* Transition for box-shadow */
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
}
&:after {
content: "";
display: block;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border-radius: inherit;
/* Inherit border-radius from button */
opacity: 0;
transition: all 0.45s;
box-shadow: 0 0 7px 15px white;
background-color: rgba(201, 201, 201, 0.37);
}
}
.animbutton {
background: transparent;
border: none;
border-radius: 5px;
font-size: 20px;
box-sizing: border-box;
text-align: center;
line-height: 1;
min-height: 2rem;
padding: 0 10px;
transition: all 250ms;
position: relative;
/* Necessary for absolute positioning of :after */
&:hover {
background-color: rgba(201, 201, 201, 0.37);
transform: translateY(0%, -1%);
padding: 0px 13px;
transition: all 200ms;
/* Shorter transition for hover */
}
&:active {
background-color: rgba(255, 255, 255, 0.466);
transform: translateY(0);
transition: all 100ms;
/* Shorter transition for active */
&:after {
opacity: 1;
transition: 0ms;
/* Transition for box-shadow */
box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}
}
&:after {
content: "";
display: block;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border-radius: inherit;
/* Inherit border-radius from button */
opacity: 0;
transition: all 0.45s;
box-shadow: 0 0 15px 10px white;
background-color: rgba(201, 201, 201, 0.37);
}
}
.homebutton {
position:relative;
&:hover {
transform: translateY(0%, -1%);
transition: all 200ms;
/* Shorter transition for hover */
}
&:active {
transform: translateY(0);
transition: all 100ms;
/* Shorter transition for active */
&:after {
opacity: 1;
transition: 0ms;
/* Transition for box-shadow */
box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.1);
}
}
&:after {
content: "";
display: block;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border-radius: inherit;
opacity: 0;
transition: all 0.65s;
box-shadow: 0 0 11px 13px white;
}
}