From 7914607ecde6fa6a3cb197a4369e7514833af3a2 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Sat, 4 Jun 2016 18:53:11 +0200 Subject: [PATCH] Apply a fade instead of a loader when loading videos --- .../videos/video-list/video-list.component.html | 4 +--- .../videos/video-list/video-list.component.scss | 16 ++++++++++++++-- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/client/src/app/videos/video-list/video-list.component.html b/client/src/app/videos/video-list/video-list.component.html index 80b1e7b1b..155025b5e 100644 --- a/client/src/app/videos/video-list/video-list.component.html +++ b/client/src/app/videos/video-list/video-list.component.html @@ -4,11 +4,9 @@
- -
There is no video.
- +
diff --git a/client/src/app/videos/video-list/video-list.component.scss b/client/src/app/videos/video-list/video-list.component.scss index 9441d80c3..5ba39f8f2 100644 --- a/client/src/app/videos/video-list/video-list.component.scss +++ b/client/src/app/videos/video-list/video-list.component.scss @@ -21,8 +21,20 @@ .videos-miniatures { min-height: 600px; - my-videos-miniature { - display: inline-block; + my-video-miniature { + transition: all 0.5s ease; + + &.ng-enter { + opacity: 0; + } + + &.ng-enter-active { + opacity: 1; + } + + &.ng-leave { + opacity: 0; + } } .no-video { -- 2.41.0