added loading icon

This commit is contained in:
Nicolas Constant 2018-10-01 22:01:47 -04:00
parent 018d3f24f0
commit 4dcf6e4431
No known key found for this signature in database
GPG Key ID: 1E9F677FB01A5688
1 changed files with 52 additions and 11 deletions

View File

@ -11,12 +11,53 @@
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
<style>
.lds-ripple {
/* display: inline-block; */
margin: 30px auto;
position: relative;
width: 64px;
height: 64px;
}
.lds-ripple div {
position: absolute;
border: 4px solid #444f74;
opacity: 1;
border-radius: 50%;
animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}
.lds-ripple div:nth-child(2) {
animation-delay: -0.5s;
}
@keyframes lds-ripple {
0% {
top: 28px;
left: 28px;
width: 0;
height: 0;
opacity: 1;
}
100% {
top: -1px;
left: -1px;
width: 58px;
height: 58px;
opacity: 0;
}
}
</style>
</head>
<body>
<app-root>
loading...
<div class="lds-ripple">
<div></div>
<div></div>
</div>
</app-root>
<script src="https://unpkg.com/ionicons@4.4.2/dist/ionicons.js"></script>