Last active
April 22, 2018 10:01
-
-
Save abner/b86cea66af067680d4e5bf4d1e2c05ed to your computer and use it in GitHub Desktop.
AngularPreload
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
ngAfterViewInit() { | |
document.getElementById('loadingIndicator').style.display = 'none'; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Pratico - JSON Schemas Studio</title> | |
<base href="/"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="icon" type="image/x-icon" href="favicon.ico"> | |
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> | |
<link href="https://fonts.googleapis.com/css?family=Orbitron" rel="stylesheet"> | |
<link href="https://fonts.googleapis.com/css?family=Farsan|Josefin+Slab|Open+Sans|Raleway|Yatra+One" rel="stylesheet"> | |
<link href="https://fonts.googleapis.com/css?family=VT323" rel="stylesheet"> | |
</head> | |
<body> | |
<style type="text/css"> | |
.loading-container { | |
position: fixed; | |
background-color: #f9f9f9; | |
z-index: 9; | |
top: 0; | |
left: 0; | |
height: 100%; | |
width: 100%; | |
cursor: wait; | |
} | |
.loading { | |
width: 40px; | |
height: 40px; | |
position: absolute; | |
top: 0; | |
left: 0; | |
bottom: 0; | |
right: 0; | |
margin: auto; | |
transform: rotate(45deg); | |
} | |
.loading div { | |
width: 16px; | |
height: 16px; | |
position: absolute; | |
} | |
.l1 div, | |
.l2 div, | |
.l3 div, | |
.l4 div { | |
width: 100%; | |
height: 100%; | |
} | |
.l1 div { | |
background-color: #2ecc71; | |
} | |
.l2 div { | |
background-color: #9b59b6; | |
} | |
.l3 div { | |
background-color: #3498db; | |
} | |
.l4 div { | |
background-color: #f1c30f; | |
} | |
.l1 { | |
transform: translate(0, 0); | |
} | |
.l2 { | |
transform: translate(0, 16px); | |
} | |
.l3 { | |
transform: translate(16px, 0px); | |
} | |
.l4 { | |
transform: translate(16px, 16px); | |
} | |
@keyframes rot1 { | |
0% { | |
transform: rotate(0deg); | |
} | |
40% { | |
transform: rotate(0deg); | |
} | |
50% { | |
transform: rotate(0deg); | |
} | |
60% { | |
transform: rotate(90deg); | |
} | |
100% { | |
transform: rotate(90deg); | |
} | |
} | |
@keyframes rot2 { | |
0% { | |
transform: rotate(0deg); | |
} | |
40% { | |
transform: rotate(0deg); | |
} | |
50% { | |
transform: rotate(0deg); | |
} | |
60% { | |
transform: rotate(-90deg); | |
} | |
100% { | |
transform: rotate(-90deg); | |
} | |
} | |
@keyframes rot3 { | |
0% { | |
transform: rotate(45deg); | |
} | |
35% { | |
transform: rotate(45deg); | |
} | |
65% { | |
transform: rotate(405deg); | |
} | |
100% { | |
transform: rotate(405deg); | |
} | |
} | |
@keyframes l1-rise { | |
0% { | |
transform: translate(0px, 0px); | |
} | |
30% { | |
transform: translate(-4px, -4px); | |
} | |
70% { | |
transform: translate(-4px, -4px); | |
} | |
100% { | |
transform: translate(0px, 0px); | |
} | |
} | |
@keyframes l2-rise { | |
0% { | |
transform: translate(0, 16px); | |
} | |
30% { | |
transform: translate(-4px, 20px); | |
} | |
70% { | |
transform: translate(-4px, 20px); | |
} | |
100% { | |
transform: translate(0, 16px); | |
} | |
} | |
@keyframes l3-rise { | |
0% { | |
transform: translate(16px, 0px); | |
} | |
30% { | |
transform: translate(20px, -4px); | |
} | |
70% { | |
transform: translate(20px, -4px); | |
} | |
100% { | |
transform: translate(16px, 0px); | |
} | |
} | |
@keyframes l4-rise { | |
0% { | |
transform: translate(16px, 16px); | |
} | |
30% { | |
transform: translate(20px, 20px); | |
} | |
70% { | |
transform: translate(20px, 20px); | |
} | |
100% { | |
transform: translate(16px, 16px); | |
} | |
} | |
.l1 { | |
animation: l1-rise 3s ease 0s infinite; | |
} | |
.l2 { | |
animation: l2-rise 3s ease 0s infinite; | |
} | |
.l3 { | |
animation: l3-rise 3s ease 0s infinite; | |
} | |
.l4 { | |
animation: l4-rise 3s ease 0s infinite; | |
} | |
.l1 div, | |
.l4 div { | |
animation: rot1 3s ease 0s infinite; | |
} | |
.l2 div, | |
.l3 div { | |
animation: rot2 3s ease 0s infinite; | |
} | |
</style> | |
<!-- Preloader --> | |
<div class="loading-container" id="loadingIndicator"> | |
<div class="loading"> | |
<div class="l1"> | |
<div></div> | |
</div> | |
<div class="l2"> | |
<div></div> | |
</div> | |
<div class="l3"> | |
<div></div> | |
</div> | |
<div class="l4"> | |
<div></div> | |
</div> | |
</div> | |
</div> | |
<!-- Preloader --> | |
<app-component></app-component> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment