From ed798a9e5e8245ac9efd477313dfa9f3389fa893 Mon Sep 17 00:00:00 2001 From: Abhishek Sharma Date: Jun 22 2018 19:14:46 +0000 Subject: add homepage loader --- diff --git a/src/app/app.scss b/src/app/app.scss index 4344684..86ec68c 100644 --- a/src/app/app.scss +++ b/src/app/app.scss @@ -122,3 +122,79 @@ ion-navbar { background-color: #fff !important; box-shadow: 0 2px 4px 0 rgba(86, 86, 86, 0.05); } + +//styles for loader +.loader-ellipsis { + display: inline-block; + position: relative; + width: 64px; + height: 64px; + div { + position: absolute; + top: 27px; + width: 11px; + height: 11px; + border-radius: 50%; + background: rgba(#79818B, 0.15); + animation-timing-function: cubic-bezier(0, 1, 1, 0); + } + div:nth-child(1) { + left: 6px; + animation: loader-ellipsis1 0.6s infinite; + } + div:nth-child(2) { + left: 6px; + animation: loader-ellipsis2 0.6s infinite; + } + div:nth-child(3) { + left: 26px; + animation: loader-ellipsis2 0.6s infinite; + } + div:nth-child(4) { + left: 45px; + animation: loader-ellipsis3 0.6s infinite; + } +} + +@keyframes loader-ellipsis1 { + 0% { + transform: scale(0); + } + 100% { + transform: scale(1); + } +} + +@keyframes loader-ellipsis3 { + 0% { + transform: scale(1); + } + 100% { + transform: scale(0); + } +} + +@keyframes loader-ellipsis2 { + 0% { + transform: translate(0, 0); + } + 100% { + transform: translate(19px, 0); + } +} + +.loader { + height: 100%; + width: 100%; + background-color: #EFF0F1; + position: absolute; + top: 0; + z-index: 999; + display: grid; + place-items: center center; + justify-content: center; +} + +.hidden { + display: none; +} \ No newline at end of file diff --git a/src/pages/home/home.html b/src/pages/home/home.html index 8facbf9..01c259f 100644 --- a/src/pages/home/home.html +++ b/src/pages/home/home.html @@ -12,51 +12,59 @@ - - - - - - - +
+
+
+
+
+
+