Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

Commit

Permalink
Loader animation, minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanbirrell committed Mar 29, 2017
1 parent a185d34 commit c3e09b2
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 6 deletions.
Binary file removed loader.gif
Binary file not shown.
25 changes: 25 additions & 0 deletions loader.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ onload = () => {
}

const loadstop = () => {
// loader.classList.remove(isLoadingClass)
loader.classList.remove(isLoadingClass)
}

webview.addEventListener('dom-ready', () => {
Expand Down
22 changes: 17 additions & 5 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,29 @@ body {
align-items: center;
}
.loader {
background-image: url("loader.gif");
background-size: 18px 18px;
background-image: url("loader.svg");
background-size: contain;
display: none;
height: 18px;
width: 18px;
height: 48px;
width: 48px;
position: absolute;
left: 50%;
margin: 0 auto;
}
.loader.is-loading {
display: block;
margin: 0 auto;
animation: loader infinite 0.5s;
}
@keyframes loader {
0% {
transform: scale(1);
}
50% {
transform: scale(.90);
}
100% {
transform: scale(1);
}
}
webview {
width: 100%;
Expand Down

0 comments on commit c3e09b2

Please sign in to comment.