Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
feat(preview): add loading animation
Browse files Browse the repository at this point in the history
Closes #299
  • Loading branch information
faaizalikhan1 authored and lkuechler committed Mar 22, 2018
1 parent 29832be commit bcfe1b9
Showing 1 changed file with 71 additions and 2 deletions.
73 changes: 71 additions & 2 deletions src/electron/preview.html
Expand Up @@ -2,10 +2,79 @@

<head>
<title>alva&trade;</title>
<style>
body {
margin: 0;
}
</style>
</head>

<body style="margin: 0;">
<div id="app"></div>
<body>
<div id="app">
<style>
.outer {
min-height: 100%;
display: flex;
align-items: center;
justify-content: center;
}

.circle_outer {
position: absolute;
width: 6%;
height: 0;
padding-bottom: 6%;
border-radius: 50%;
animation: a_outer 1.1s 0.45s infinite alternate;
background: rgba(65, 148, 224, 0.2);
}

.circle_lblue {
position: absolute;
width: 6%;
height: 0;
padding-bottom: 6%;
border-radius: 50%;
animation: a_lblue 1.1s 0.32s infinite alternate;
background: rgba(65, 148, 224, 0.3);
}

.circle_blue {
position: absolute;
width: 8%;
height: 0;
padding-bottom: 8%;
border-radius: 50%;
animation: a_blue 1.1s infinite alternate-reverse;
background: rgb(65, 148, 224);
}

/* Animations */

@keyframes a_outer {
to {
transform: scale(2.5);
}
}

@keyframes a_blue {
to {
transform: scale(1.1);
}
}

@keyframes a_lblue {
to {
transform: scale(2.0);
}
}
</style>
<div class="outer">
<div class="circle_outer"></div>
<div class="circle_lblue"></div>
<div class="circle_blue"></div>
</div>
</div>
</body>

</html>

0 comments on commit bcfe1b9

Please sign in to comment.