PluginProbe
LoftLoader / 2.1.6
LoftLoader v2.1.6
trunk 1.0.0 1.0.1 1.0.2 2.0.0 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 2.2.0 2.2.1 2.2.2 2.3 2.3.1 2.3.2 2.3.3 All 34 releases
loftloader / assets / scss / loftloader.scss

loftloader.scss in LoftLoader 2.1.6, at assets/scss/loftloader.scss

514 lines 12.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /**
2 * LoftLoader Lite Frontend Style
3 *
4 * Plugin Name: LoftLoader
5 * Plugin URI: http://www.loftocean.com/loftloader
6 * Author: Kaylolo Yinxi Chen @Loft.Ocean
7 * Author URI: http://www.loftocean.com
8 * Description: LoftLoader (Lite Version) is a plugin for adding beautiful and smooth preload animation to your WordPress website. With setting options, you can choose from preset animations, add custom logo image, choose colours to match your branding, and amuse and impress your visitors while loading site content.
9 * Version: 2.1.6
10 */
11
12 $primary-color: #248acc;
13
14 @import 'loftloader-animation';
15 @import 'loftloader-mixins';
16
17 html,
18 body {
19 opacity: 1 !important; //Prevent site content from being hidden by other plugins before their code get fully loaded.
20 }
21
22 #loftloader-wrapper {
23 position: fixed;
24 top: 0;
25 left: 0;
26 @include transform(translateX(0));
27 z-index: 999999;
28 width: 100%;
29 height: 100%;
30 background: transparent !important;
31
32 // After the page content has been loaded:
33 .loaded & {
34 @include transform(translateX(-200%));
35 visibility: hidden;
36 pointer-events: none;
37 transition: all;
38 transition-delay: 1s;
39
40 &.slide-vertical {
41 @include verticalend;
42 }
43
44 // Hide the preloader elements
45 #loader,
46 .loader-close-button {
47 @include endLoader;
48 }
49 }
50
51 .loader-inner {
52 position: absolute;
53 top: 50%;
54 left: 50%;
55 @include transform(translate(-50%, -50%));
56 z-index: 1001;
57 text-align: center;
58 transition: all 0s;
59 font-size: 0;
60
61 #loader {
62 position: relative;
63 z-index: 1002;
64 display: inline-block;
65 margin: 0 auto;
66 color: $primary-color;
67 }
68 }
69
70 // LoftLoader Background
71 .loader-section {
72 position: fixed;
73 z-index: 999;
74 width: 50%;
75 height: 100%;
76 background: #000;
77 opacity: 0.95;
78 transition: all 0s;
79 will-change: transform;
80
81 //Fade
82 &.section-fade {
83 top: 0;
84 left: 0;
85 width: 100%;
86 will-change: opacity;
87
88 .loaded & {
89 @include endBgFade;
90 }
91 }
92
93 //Slide Up
94 &.section-slide-up {
95 top: 0;
96 left: 0;
97 width: 100%;
98
99 .loaded & {
100 @include endBgUp;
101 }
102 }
103
104 //Split Horizontally
105 &.section-left,
106 &.section-right {
107 top: 0;
108 }
109
110 &.section-left {
111 left: 0;
112
113 .loaded & {
114 @include endBgSplitLeft;
115 }
116 }
117
118 &.section-right {
119 right: 0;
120
121 .loaded & {
122 @include endBgSplitRight;
123 }
124 }
125
126 //Split Vertically
127 &.section-up,
128 &.section-down {
129 left: 0;
130 width: 100%;
131 height: 50%;
132 }
133
134 &.section-up {
135 top: 0;
136
137 .loaded & {
138 @include endBgSplitUp;
139 }
140 }
141
142 &.section-down {
143 bottom: 0;
144
145 .loaded & {
146 @include endBgSplitDown;
147 }
148 }
149 }
150 }
151
152
153 /* ==========================================================================
154 Loading - Spinning Sun
155 ========================================================================== */
156
157 #loftloader-wrapper.pl-sun {
158 #loader {
159 width: 50px;
160 height: 50px;
161
162 span {
163 position: absolute;
164 top: 0;
165 left: 0;
166 display: block;
167 width: 50px;
168 height: 50px;
169 background: currentColor;
170 opacity: 0.9;
171 transform-origin: 50% 50%;
172 @include animation(spinReturn 4s ease infinite);
173
174 &:before {
175 position: absolute;
176 top: 0;
177 left: 0;
178 display: block;
179 width: 100%;
180 height: 100%;
181 background: inherit;
182 opacity: 0.9;
183 content: "";
184 transform-origin: 50% 50%;
185 @include transform(rotate(45deg));
186 }
187 }
188 }
189 }
190
191
192 /* ==========================================================================
193 Loading - Luminous Circles
194 ========================================================================== */
195
196 #loftloader-wrapper.pl-circles {
197 #loader {
198 width: 100px;
199 height: 60px;
200
201 span,
202 &:before,
203 &:after {
204 position: absolute;
205 display: block;
206 width: 10px;
207 height: 10px;
208 border-radius: 50%;
209 opacity: 0.2;
210 background: currentColor;
211 }
212
213 span {
214 top: 50%;
215 left: 50%;
216 @include transform(translate(-50%, -50%));
217 @include animation(lightUp 1.5s linear infinite 0.5s);
218 }
219
220 &:before,
221 &:after {
222 content: "";
223 top: 50%;
224 @include transform(translate(0, -50%));
225 }
226
227 &:before {
228 left: 0;
229 @include animation(lightUp 1.5s linear infinite);
230 }
231
232 &:after {
233 right: 0;
234 @include animation(lightUp 1.5s linear infinite 1s);
235 }
236 }
237 }
238
239
240 /* ==========================================================================
241 Loading - Wave
242 ========================================================================== */
243
244 #loftloader-wrapper.pl-wave {
245 #loader {
246 width: 60px;
247 height: 30px;
248
249 span,
250 &:before,
251 &:after {
252 position: relative;
253 display: inline-block;
254 width: 6px;
255 height: 100%;
256 background: currentColor;
257 }
258
259 span {
260 margin: 0 16px;
261 @include animation(wave 0.9s linear infinite 0.3s);
262 }
263
264 &:before,
265 &:after {
266 content: "";
267 }
268
269 &:before {
270 @include animation(wave 0.9s linear infinite);
271 }
272
273 &:after {
274 @include animation(wave 0.9s linear infinite 0.6s);
275 }
276 }
277 }
278
279
280 /* ==========================================================================
281 Loading - Spinning Square
282 ========================================================================== */
283
284 #loftloader-wrapper.pl-square {
285 #loader {
286 width: 50px;
287 height: 50px;
288 transform-origin: 50% 50%;
289 @include animation(spinReturn 4s ease infinite);
290
291 span {
292 position: absolute;
293 top: 0;
294 left: 0;
295 display: block;
296 width: 100%;
297 height: 100%;
298 border: 4px solid currentColor;
299 box-sizing: border-box;
300 transform-origin: 50% 50%;
301 @include transform(rotate(45deg));
302 }
303 }
304 }
305
306
307 /* ==========================================================================
308 Loading - Drawing Frame
309 ========================================================================== */
310
311 #loftloader-wrapper.pl-frame {
312 #loader {
313 width: 80px;
314 height: 80px;
315 max-width: 90vw;
316
317 &:before,
318 &:after {
319 position: absolute;
320 width: 100%;
321 height: 4px;
322 background: currentColor;
323 content: "";
324 }
325
326 &:before {
327 top: 0;
328 right: 0;
329 left: auto;
330 @include animation(drawframeTop 4s linear infinite);
331 }
332
333 &:after {
334 right: auto;
335 bottom: 0;
336 left: 0;
337 @include animation(drawframeBottom 4s linear infinite 1s);
338 }
339
340 span {
341 position: absolute;
342 top: 0;
343 left: 0;
344 display: block;
345 width: 100%;
346 height: 100%;
347
348 &:before,
349 &:after {
350 position: absolute;
351 width: 4px;
352 height: 100%;
353 background: currentColor;
354 content: "";
355 }
356
357 &:before {
358 top: auto;
359 right: 0;
360 bottom: 0;
361 @include animation(drawframeRight 4s linear infinite 0.5s);
362 }
363
364 &:after {
365 top: 0;
366 bottom: auto;
367 left: 0;
368 @include animation(drawframeLeft 4s linear infinite 1.5s);
369 }
370 }
371
372 img {
373 position: absolute;
374 top: 50%;
375 left: 50%;
376 @include transform(translate(-50%, -50%));
377 display: block;
378 max-width: 80%;
379 max-height: 80%;
380 }
381 }
382 }
383
384
385 /* ==========================================================================
386 Loading - Loading Custom Image
387 ========================================================================== */
388
389 #loftloader-wrapper.pl-imgloading {
390 #loader {
391 @include customImg;
392
393 img {
394 opacity: 0.3;
395 }
396
397 span {
398 position: absolute;
399 bottom: 0;
400 left: 0;
401 z-index: 3;
402 display: block;
403 width: 100%;
404 height: 0%;
405 transition: 0s;
406 background: {
407 repeat: no-repeat;
408 size: cover;
409 position: center bottom;
410 }
411 @include animation(imgLoading 6s linear infinite);
412 }
413 }
414 }
415
416
417 /* ==========================================================================
418 Loading - Beating
419 ========================================================================== */
420
421 #loftloader-wrapper.pl-beating {
422 #loader {
423 width: 60px;
424 height: 60px;
425
426 span,
427 &:before {
428 position: absolute;
429 top: 0;
430 left: 0;
431 display: block;
432 width: 60px;
433 height: 60px;
434 border-radius: 50%;
435 background: currentColor;
436 box-shadow: 0 0 50px;
437 opacity: 0;
438 }
439
440 span {
441 @include animation(beat 1.5s linear infinite);
442 }
443
444 &:before {
445 content: "";
446 @include animation(beat 1.5s linear infinite 1s);
447 }
448 }
449 }
450
451
452 /* ==========================================================================
453 Close Button
454 ========================================================================== */
455
456 .loader-close-button {
457 position: fixed;
458 right: 10px;
459 top: 10px;
460 z-index: 99999;
461 width: auto;
462 min-width: 35px;
463 height: 35px;
464 padding: 5px 30px 5px 5px;
465 border-radius: 999px;
466 background: rgba(#000, 0.3);
467 color: #FFF;
468 font-size: 12px;
469 line-height: 25px;
470 cursor: pointer;
471
472 &:hover {
473 background: rgba(#000,0.7);
474 }
475
476 &:before,
477 &:after {
478 position: absolute;
479 top: 16px;
480 right: 9px;
481 display: block;
482 width: 18px;
483 height: 2px;
484 transform-origin: 50% 50%;
485 content: "";
486 background: #FFF;
487 }
488
489 &:before {
490 @include transform(rotate(45deg));
491 }
492
493 &:after {
494 @include transform(rotate(135deg));
495 }
496
497 .screen-reader-text {
498 position: absolute !important;
499 width: 1px;
500 height: 1px;
501 padding: 0;
502 margin: -1px;
503 border: 0;
504 clip: rect(1px, 1px, 1px, 1px);
505 clip-path: inset(50%);
506 overflow: hidden;
507 word-wrap: normal !important;
508 }
509
510 .close-des {
511 padding: 0 5px;
512 font-size: 12px;
513 }
514 }