-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcandle.css
217 lines (213 loc) · 5.02 KB
/
candle.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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
.frame {
position: absolute;
top: 50%;
left: 50%;
width: 400px;
height: 400px;
margin-top: -200px;
margin-left: -200px;
border-radius: 2px;
box-shadow: 4px 8px 16px 0 rgba(0, 0, 0, 0.1);
overflow: hidden;
background: radial-gradient(#573814, #242327 50%);
color: #333;
font-family: "Open Sans", Helvetica, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.center {
position: absolute;
top: 70%;
left: 50%;
transform: translate(-50%, -50%);
}
.candle {
position: relative;
}
.candle__body {
width: 80px;
height: 100px;
background-image: radial-gradient(circle at top center, #f5efe5, #242327 80%);
background-position: top center;
border-radius: 5px;
animation: bodylight 0.2s ease-in infinite;
overflow: hidden;
position: relative;
}
.candle__body::before {
content: "";
position: absolute;
width: 2px;
height: 10px;
background-color: #696969;
top: -5px;
left: 50%;
transform: translateX(-50%);
z-index: 20;
}
.candle__body::after {
content: "";
position: absolute;
width: 100%;
height: 20px;
background-image: radial-gradient(circle at top center, #F2D7B4, #DF9881);
animation: toplight 0.2s ease-in infinite;
border-radius: 50%;
top: -10px;
}
.candle__fire {
width: 20px;
height: 40px;
background: yellow;
top: -30px;
border-radius: 13% 87% 52% 48%/56% 48% 52% 44%;
animation: fire 0.2s ease-in infinite;
box-shadow: 0 -10px 3px 10px orange, 0 0 50px 20px orange;
}
@keyframes fire {
0%, 100% {
border-radius: 50% 50% 50% 50%/60% 60% 40% 40%;
}
50% {
border-radius: 86% 14% 51% 49%/69% 49% 51% 31%;
width: 15px;
height: 34px;
}
75% {
border-radius: 18% 82% 51% 49%/52% 73% 27% 48%;
}
}
@keyframes bodylight {
0%, 100% {
background-image: radial-gradient(circle at top center, #f5efe5, #242327 80%);
}
60% {
background-image: radial-gradient(circle at top center, #f5efe5, #242327 85%);
}
90% {
background-image: radial-gradient(circle at top center, #f5efe5, #242327 75%);
}
}
@keyframes toplight {
0%, 100% {
background-image: radial-gradient(circle at top center, #725f3d, #f5efe5 50%);
}
50% {
background-image: radial-gradient(circle at top center, #725f3d, #f5efe5 60%);
}
75% {
background-image: radial-gradient(circle at top center, #725f3d, #f5efe5 40%);
}
}
/*lit*/
.word{
position: absolute;
height:60px;
width: 200px;
top: 170px;
left: 105px;
}
.word .light{
position: absolute;
background: #FFF236;
box-shadow: 0px 0px 6px 0px #FFF236;
border-radius: 2px;
}
.word .l{
position: absolute;
width: 60px;
height: 60px;
top:0;
left: 25px;
}
.word .l .left{
top: 0;
left: 0;
height: 50px;
width: 4px;
-webkit-animation: flickr 1s ease-in-out 3.43s infinite alternate both;
animation: flickr 1s ease-in-out 3.43s infinite alternate both;
}
.word .l .bottom{
bottom: 10px;
left: 4px;
height: 4px;
width: 38px;
-webkit-animation: flickr 1s ease-in-out 2.01s infinite alternate both;
animation: flickr 1s ease-in-out 2.01s infinite alternate both;
}
.word .i {
position: absolute;
width: 60px;
height: 60px;
top: 0;
left: 70px;
}
.word .i .top {
top: 0;
left: 0;
width: 45px;
height: 4px;
-webkit-animation: flickr 1s ease-in-out 2.5s infinite alternate both;
animation: flickr 1s ease-in-out 2.5s infinite alternate both;
}
.word .i .middle {
top: 4px;
left: 22.5px;
height: 42px;
width: 4px;
-webkit-animation: flickr 1s ease-in-out 5.01s infinite alternate both;
animation: flickr 1s ease-in-out 5.01s infinite alternate both;
}
.word .i .bottom {
bottom: 10px;
left: 0;
width: 45px;
height: 4px;
-webkit-animation: flickr 1s ease-in-out 1.11s infinite alternate both;
animation: flickr 1s ease-in-out 1.11s infinite alternate both;
}
.word .t{
position: absolute;
width: 60px;
height: 60px;
top: 0;
left: 120px;
}
.word .t .top{
top: 0;
left: 0;
width: 45px;
height: 4px;
-webkit-animation: flickr 1s ease-in-out 0.43s infinite alternate both;
animation: flickr 1s ease-in-out 0.43s infinite alternate both;
}
.word .t .bottom{
position: absolute;
bottom: 10px;
left: 22.5px;
height: 45px;
width: 4px;
-webkit-animation: flickr 1s ease-in-out 1.53s infinite alternate both;
animation: flickr 1s ease-in-out 1.53s infinite alternate both;
}
@-webkit-keyframes flickr {
35%, 37%, 39%, 41%, 100% {
background:#F07C14;
box-shadow: 0px 0px 10px 0px #DB4210;
}
0%, 34%, 36%, 36%, 38%, 40% {
background: #FFF236;
box-shadow: 0px 0px 6px 0px #FFF236;
}
}
@keyframes flickr {
35%, 37%, 39%, 41%, 100% {
background: #F07C14;
box-shadow: 0px 0px 10px 0px #DB4210;
}
0%, 34%, 36%, 36%, 38%, 40% {
background: #FFF236;
box-shadow: 0px 0px 6px 0px #FFF236;
}
}