Skip to content

Commit

Permalink
Page Loader, old browser hint #40
Browse files Browse the repository at this point in the history
  • Loading branch information
joepio committed May 29, 2019
1 parent 7f353cf commit 3abe25f
Show file tree
Hide file tree
Showing 2 changed files with 114 additions and 1 deletion.
11 changes: 10 additions & 1 deletion front/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
-->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<link rel="stylesheet" href="%PUBLIC_URL%/page-loader.css" />
<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Expand All @@ -33,7 +34,15 @@
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<div id="root">
<div class="page-loader">
<div class="lds-roller"><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div></div>
<p class="page-loader__text">
Als deze text blijft staan, wordt Open Raadsinformatie mogelijk niet goed weergegeven.
Probeer een moderne webbrowser.
</p>
</div>
</div>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.
Expand Down
104 changes: 104 additions & 0 deletions front/public/page-loader.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
.page-loader {
margin: auto;
max-width: 30rem;
margin-top: 5rem;
}
.page-loader__text {
/* opacity: 0; */
font-family: "open sans", "arial", "sans-serif";
transition: opacity 4s ease-in;
-webkit-animation: fadein 4s; /* Safari, Chrome and Opera > 12.1 */
-ms-animation: fadein 4s; /* Internet Explorer */
animation: fadein 4s;
animation-fill-mode: forwards;
}
@keyframes fadein {
0% { opacity: 0; }
80% { opacity: 0; }
100% { opacity: 1; }
}
.lds-roller {
display: block;
position: relative;
width: 64px;
height: 64px;
margin: auto;
}
.lds-roller div {
animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
transform-origin: 32px 32px;
}
.lds-roller div:after {
content: " ";
display: block;
position: absolute;
width: 6px;
height: 6px;
border-radius: 50%;
background: #279DDD;
margin: -3px 0 0 -3px;
}
.lds-roller div:nth-child(1) {
animation-delay: -0.036s;
}
.lds-roller div:nth-child(1):after {
top: 50px;
left: 50px;
}
.lds-roller div:nth-child(2) {
animation-delay: -0.072s;
}
.lds-roller div:nth-child(2):after {
top: 54px;
left: 45px;
}
.lds-roller div:nth-child(3) {
animation-delay: -0.108s;
}
.lds-roller div:nth-child(3):after {
top: 57px;
left: 39px;
}
.lds-roller div:nth-child(4) {
animation-delay: -0.144s;
}
.lds-roller div:nth-child(4):after {
top: 58px;
left: 32px;
}
.lds-roller div:nth-child(5) {
animation-delay: -0.18s;
}
.lds-roller div:nth-child(5):after {
top: 57px;
left: 25px;
}
.lds-roller div:nth-child(6) {
animation-delay: -0.216s;
}
.lds-roller div:nth-child(6):after {
top: 54px;
left: 19px;
}
.lds-roller div:nth-child(7) {
animation-delay: -0.252s;
}
.lds-roller div:nth-child(7):after {
top: 50px;
left: 14px;
}
.lds-roller div:nth-child(8) {
animation-delay: -0.288s;
}
.lds-roller div:nth-child(8):after {
top: 45px;
left: 10px;
}
@keyframes lds-roller {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}

0 comments on commit 3abe25f

Please sign in to comment.