From c2624435980a6c60038ecf7d859133a8a64a952b Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 31 Oct 2019 09:28:38 +0100 Subject: [PATCH] Fix instances list animation --- src/components/InstancesList.vue | 40 ++++++++++++++++++-------------- 1 file changed, 22 insertions(+), 18 deletions(-) diff --git a/src/components/InstancesList.vue b/src/components/InstancesList.vue index b6af7f1..c8b98d0 100644 --- a/src/components/InstancesList.vue +++ b/src/components/InstancesList.vue @@ -106,9 +106,9 @@
Instances list - +
PeerTube mascot - +
@@ -186,26 +186,30 @@ } } - .mascot-loading { - display: none; + .mascot-loading-block { + width: 100%; - @media screen and (min-width: $responsive-screen) { - &.animate { - display: block; - animation: mascotLoadingAnimation 1s normal ease-out; + .mascot-loading { + display: none; - @keyframes mascotLoadingAnimation { - 0% { - margin-left: 0; - } + @media screen and (min-width: $responsive-screen) { + &.animate { + display: block; + animation: mascotLoadingAnimation 1s normal ease-out; - 50% { - opacity: 1; - } + @keyframes mascotLoadingAnimation { + 0% { + margin-left: 0; + } - 100% { - margin-left: calc(100% - 300px); - opacity: 0; + 50% { + opacity: 1; + } + + 100% { + margin-left: calc(100% - 150px); + opacity: 0; + } } } }