|
|
@@ -1,243 +1,81 @@
|
|
|
<template>
|
|
|
- <div class="loader">
|
|
|
- <!-- <span class="text">Loading</span> -->
|
|
|
- <span class="spinner"></span>
|
|
|
+ <div class="loading-content">
|
|
|
+ <div class="loading">
|
|
|
+ <img class="img1" src="../assets/01.png" alt="" />
|
|
|
+ <img class="img2" src="../assets/02.png" alt="" />
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
-<style lang="less" scoped>
|
|
|
-.loader {
|
|
|
- position: absolute;
|
|
|
- top: 50%;
|
|
|
- left: 50%;
|
|
|
- -webkit-transform: translate(-50%, -50%);
|
|
|
- -moz-transform: translate(-50%, -50%);
|
|
|
- -mos-transform: translate(-50%, -50%);
|
|
|
- -o-transform: translate(-50%, -50%);
|
|
|
- transform: translate(-50%, -50%);
|
|
|
- text-align: center;
|
|
|
- /* disable selection and cursor changes */
|
|
|
- -webkit-touch-callout: none;
|
|
|
- -webkit-user-select: none;
|
|
|
- -khtml-user-select: none;
|
|
|
- -moz-user-select: none;
|
|
|
- -ms-user-select: none;
|
|
|
- user-select: none;
|
|
|
- cursor: default;
|
|
|
-}
|
|
|
+<script>
|
|
|
+export default {};
|
|
|
+</script>
|
|
|
|
|
|
-/* Text align it the center of screen and connect the looped animation for 2.5 seconds */
|
|
|
-.loader .text {
|
|
|
- position: absolute;
|
|
|
- top: 18px;
|
|
|
- left: 4px;
|
|
|
- z-index: 5;
|
|
|
- font-size: 20px;
|
|
|
- text-transform: uppercase;
|
|
|
- -webkit-animation: text 2.5s cubic-bezier(0.75, 0, 0.5, 1) infinite normal;
|
|
|
- -moz-animation: text 2.5s cubic-bezier(0.75, 0, 0.5, 1) infinite normal;
|
|
|
- -ms-animation: text 2.5s cubic-bezier(0.75, 0, 0.5, 1) infinite normal;
|
|
|
- -o-animation: text 2.5s cubic-bezier(0.75, 0, 0.5, 1) infinite normal;
|
|
|
- animation: text 2.5s cubic-bezier(0.75, 0, 0.5, 1) infinite normal;
|
|
|
-}
|
|
|
-
|
|
|
-/* Create a container for animation*/
|
|
|
-.spinner {
|
|
|
- position: relative;
|
|
|
- width: 50px;
|
|
|
- height: 50px;
|
|
|
- color: #fff;
|
|
|
-}
|
|
|
-
|
|
|
-.spinner:before,
|
|
|
-.spinner:after {
|
|
|
- content: '';
|
|
|
+<style lang="less" scoped>
|
|
|
+.loading-content {
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ width: 100%;
|
|
|
position: relative;
|
|
|
- display: block;
|
|
|
-}
|
|
|
-
|
|
|
-/* Create cube and set animation*/
|
|
|
-.spinner:before {
|
|
|
- -webkit-animation: spinner 2.5s cubic-bezier(0.75, 0, 0.5, 1) infinite normal;
|
|
|
- -moz-animation: spinner 2.5s cubic-bezier(0.75, 0, 0.5, 1) infinite normal;
|
|
|
- -ms-animation: spinner 2.5s cubic-bezier(0.75, 0, 0.5, 1) infinite normal;
|
|
|
- -o-animation: spinner 2.5s cubic-bezier(0.75, 0, 0.5, 1) infinite normal;
|
|
|
- animation: spinner 2.5s cubic-bezier(0.75, 0, 0.5, 1) infinite normal;
|
|
|
- width: 50px;
|
|
|
- height: 50px;
|
|
|
- background-color: #ffb178;
|
|
|
}
|
|
|
|
|
|
-/* Create shadow and set animation*/
|
|
|
-.spinner:after {
|
|
|
- -webkit-animation: shadow 2.5s cubic-bezier(0.75, 0, 0.5, 1) infinite normal;
|
|
|
- -moz-animation: shadow 2.5s cubic-bezier(0.75, 0, 0.5, 1) infinite normal;
|
|
|
- -ms-animation: shadow 2.5s cubic-bezier(0.75, 0, 0.5, 1) infinite normal;
|
|
|
- -o-animation: shadow 2.5s cubic-bezier(0.75, 0, 0.5, 1) infinite normal;
|
|
|
- animation: shadow 2.5s cubic-bezier(0.75, 0, 0.5, 1) infinite normal;
|
|
|
+.loading {
|
|
|
position: relative;
|
|
|
- bottom: -17.5px;
|
|
|
- height: 2.5px;
|
|
|
- border-radius: 50%;
|
|
|
- background-color: #322b27;
|
|
|
-}
|
|
|
-
|
|
|
-/* Animation keys */
|
|
|
-/* from cube to circle */
|
|
|
-@-webkit-keyframes spinner {
|
|
|
- 50% {
|
|
|
- -webkit-border-radius: 50%;
|
|
|
- -webkit-transform: scale(0.5) rotate(360deg);
|
|
|
- background-color: #fffecb;
|
|
|
- }
|
|
|
- 100% {
|
|
|
- -webkit-transform: scale(1) rotate(720deg);
|
|
|
- background-color: #ffb178;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-@-moz-keyframes spinner {
|
|
|
- 50% {
|
|
|
- -moz-border-radius: 50%;
|
|
|
- -moz-transform: scale(0.5) rotate(360deg);
|
|
|
- background-color: #fffecb;
|
|
|
- }
|
|
|
- 100% {
|
|
|
- -moz-transform: scale(1) rotate(720deg);
|
|
|
- background-color: #ffb178;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-@-mos-keyframes spinner {
|
|
|
- 50% {
|
|
|
- -mos-border-radius: 50%;
|
|
|
- -mos-transform: scale(0.5) rotate(360deg);
|
|
|
- background-color: #fffecb;
|
|
|
- }
|
|
|
- 100% {
|
|
|
- -mos-transform: scale(1) rotate(720deg);
|
|
|
- background-color: #ffb178;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-@-o-keyframes spinner {
|
|
|
- 50% {
|
|
|
- -o-border-radius: 50%;
|
|
|
- -o-transform: scale(0.5) rotate(360deg);
|
|
|
- background-color: #fffecb;
|
|
|
- }
|
|
|
- 100% {
|
|
|
- -o-transform: scale(1) rotate(720deg);
|
|
|
- background-color: #ffb178;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-@keyframes spinner {
|
|
|
- 50% {
|
|
|
- border-radius: 50%;
|
|
|
- transform: scale(0.5) rotate(360deg);
|
|
|
- background-color: #fffecb;
|
|
|
- }
|
|
|
- 100% {
|
|
|
- transform: scale(1) rotate(720deg);
|
|
|
- background-color: #ffb178;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-/* animation shadow */
|
|
|
-@-webkit-keyframes shadow {
|
|
|
- 50% {
|
|
|
- -webkit-transform: scale(0.5);
|
|
|
- background-color: #322b27;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-@-moz-keyframes shadow {
|
|
|
- 50% {
|
|
|
- -moz-transform: scale(0.5);
|
|
|
- background-color: #322b27;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-@-mos-keyframes shadow {
|
|
|
- 50% {
|
|
|
- -mos-transform: scale(0.5);
|
|
|
- background-color: #322b27;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-@-o-keyframes shadow {
|
|
|
- 50% {
|
|
|
- -o-transform: scale(0.5);
|
|
|
- background-color: #322b27;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-@keyframes shadow {
|
|
|
- 50% {
|
|
|
- transform: scale(0.5);
|
|
|
- background-color: #322b27;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-/* animation text */
|
|
|
-@-webkit-keyframes text {
|
|
|
- 0% {
|
|
|
- -webkit-transform: scale(1, 1);
|
|
|
- }
|
|
|
- 50% {
|
|
|
- -webkit-transform: scale(0.5, 0.5);
|
|
|
- }
|
|
|
- 100% {
|
|
|
- -webkit-transform: scale(1, 1);
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-@-moz-keyframes text {
|
|
|
- 0% {
|
|
|
- -moz-transform: scale(1, 1);
|
|
|
- }
|
|
|
- 50% {
|
|
|
- -moz-transform: scale(0.5, 0.5);
|
|
|
- }
|
|
|
- 100% {
|
|
|
- -moz-transform: scale(1, 1);
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-@-mos-keyframes text {
|
|
|
- 0% {
|
|
|
- -mos-transform: scale(1, 1);
|
|
|
- }
|
|
|
- 50% {
|
|
|
- -mos-transform: scale(0.5, 0.5);
|
|
|
- }
|
|
|
- 100% {
|
|
|
- -mos-transform: scale(1, 1);
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-@-o-keyframes text {
|
|
|
- 0% {
|
|
|
- -o-transform: scale(1, 1);
|
|
|
- }
|
|
|
- 50% {
|
|
|
- -o-transform: scale(0.5, 0.5);
|
|
|
- }
|
|
|
- 100% {
|
|
|
- -o-transform: scale(1, 1);
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-@keyframes text {
|
|
|
- 0% {
|
|
|
- transform: scale(1, 1);
|
|
|
- }
|
|
|
- 50% {
|
|
|
- transform: scale(0.5, 0.5);
|
|
|
- }
|
|
|
- 100% {
|
|
|
- transform: scale(1, 1);
|
|
|
+ overflow: hidden;
|
|
|
+ box-sizing: border-box;
|
|
|
+ border-width: 0;
|
|
|
+ width: 60%;
|
|
|
+ .img1 {
|
|
|
+ position: absolute;
|
|
|
+ left: -1px;
|
|
|
+ top: -1px;
|
|
|
+ right: -1px;
|
|
|
+ bottom: -1px;
|
|
|
+ z-index: 2;
|
|
|
+ display: block;
|
|
|
+ width: calc(100% + 4px);
|
|
|
+ height: calc(100% + 4px);
|
|
|
+ }
|
|
|
+
|
|
|
+ .img2 {
|
|
|
+ position: relative;
|
|
|
+ z-index: 0;
|
|
|
+ display: block;
|
|
|
+ width: 100%;
|
|
|
+ height: auto;
|
|
|
+ }
|
|
|
+
|
|
|
+ @keyframes flipYLight {
|
|
|
+ 0% {
|
|
|
+ left: -40%;
|
|
|
+ opacity: 0.5;
|
|
|
+ width: 10px;
|
|
|
+ }
|
|
|
+ 50% {
|
|
|
+ left: 20%;
|
|
|
+ opacity: 0;
|
|
|
+ width: 35px;
|
|
|
+ }
|
|
|
+ 100% {
|
|
|
+ left: 90%;
|
|
|
+ opacity: 0.5;
|
|
|
+ width: 10px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ &::after {
|
|
|
+ content: '';
|
|
|
+ background-color: #fff;
|
|
|
+ position: absolute;
|
|
|
+ background: #fff;
|
|
|
+ width: 25px;
|
|
|
+ height: 100vw;
|
|
|
+ top: 0;
|
|
|
+ left: 45px;
|
|
|
+ opacity: 1;
|
|
|
+ transform: skewX(-25deg);
|
|
|
+ z-index: 1;
|
|
|
+ animation: flipYLight 1.5s linear infinite;
|
|
|
}
|
|
|
}
|
|
|
</style>
|