diff --git a/fe_calckey/frontend/assets-be/style.template.css b/fe_calckey/frontend/assets-be/style.template.css index 9b2ee2d..4f561b8 100644 --- a/fe_calckey/frontend/assets-be/style.template.css +++ b/fe_calckey/frontend/assets-be/style.template.css @@ -32,9 +32,6 @@ html { width: 64px; height: 64px; pointer-events: none; - animation-duration: 1s; - animation-iteration-count: infinite; - animation-name: tada; } #splashSpinner { @@ -44,13 +41,28 @@ html { bottom: 0; left: 0; margin: auto; - display: inline-block; width: 28px; height: 28px; transform: translateY(110px); display: none; color: var(--accent); } + +#splashText { + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; + margin: auto; + display: inline-block; + width: 70%; + height: 0; + text-align: center; + padding-top: 100px; + font-family: sans-serif; +} + #splashSpinner > .spinner { position: absolute; top: 0; @@ -79,34 +91,6 @@ html { } } -@keyframes tada { - 0% { - transform: scale3d(1, 1, 1); - } - - 10%, - 20% { - transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg); - } - - 30%, - 50%, - 70%, - 90% { - transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg); - } - - 40%, - 60%, - 80% { - transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg); - } - - 100% { - transform: scale3d(1, 1, 1); - } -} - @media(prefers-reduced-motion) { #splashSpinner { display: block; @@ -117,17 +101,99 @@ html { } } -#splashText { - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - margin: auto; - display: inline-block; - width: 70%; - height: 0; - text-align: center; - padding-top: 100px; - font-family: sans-serif; +.loadButterfly { + position: absolute; + top: -68px; + right: 32px; + width: 64px; + height: 64px; +} + +.loadButterfly .loadButterflyWingLeft { + position: absolute; + left: 1px; + --butterfly-wl-0: rgb(255, 185, 158); + --butterfly-wl-1: rgb(118, 70, 255); + animation-name: anim-lw; + animation-duration: 3s; + animation-timing-function: ease-out; + animation-iteration-count: infinite; +} + +@media (prefers-reduced-motion) { + .loadButterfly .loadButterflyWingLeft { + animation-play-state: paused; + } +} + + +@keyframes anim-lw { + 0% { + transform: rotate3d(1, 1, 0, 1deg); + } + + 10% { + filter: brightness(1.05); + } + + 25% { + transform: rotate3d(1, 1, 0, 45deg); + filter: brightness(1.25); + } + + 40% { + filter: brightness(1.05); + } + + 50% { + transform: rotate3d(1, 1, 0, 1deg); + } + + 100% { + transform: rotate3d(1, 1, 0, 1deg); + } +} + +.loadButterfly .loadButterflyWingRight { + position: absolute; + top: 1px; + --butterfly-wr-0: rgb(255, 185, 158); + --butterfly-wr-1: rgb(118, 70, 255); + animation-name: anim-rw; + animation-duration: 3s; + animation-timing-function: ease-out; + animation-iteration-count: infinite; +} + +@media (prefers-reduced-motion) { + .loadButterfly .loadButterflyWingRight { + animation-play-state: paused; + } +} + +@keyframes anim-rw { + 0% { + transform: rotate3d(1, 1, 0, -1deg); + } + + 10% { + filter: brightness(0.95); + } + + 25% { + transform: rotate3d(1, 1, 0, -45deg); + filter: brightness(0.8); + } + + 40% { + filter: brightness(0.95); + } + + 50% { + transform: rotate3d(1, 1, 0, -1deg); + } + + 100% { + transform: rotate3d(1, 1, 0, -1deg); + } } diff --git a/fe_calckey/frontend/assets-be/template/base.html b/fe_calckey/frontend/assets-be/template/base.html index 5ec1a94..02459ee 100644 --- a/fe_calckey/frontend/assets-be/template/base.html +++ b/fe_calckey/frontend/assets-be/template/base.html @@ -41,7 +41,6 @@