chore: make background fade in reusable
continuous-integration/drone/pr Build is failing Details

This commit is contained in:
kolaente 2021-12-20 22:06:45 +01:00
parent 0e886ba76b
commit 33158167d5
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
3 changed files with 8 additions and 4 deletions

View File

@ -10,7 +10,7 @@
>
<div
:class="{'is-visible': background}"
class="app-container-background"
class="app-container-background background-fade-in"
:style="{'background-image': background && `url(${background})`}"></div>
<navigation/>
<div

View File

@ -12,9 +12,10 @@
class="list-card"
v-if="list !== null && (showArchived ? true : !list.isArchived)"
>
<div v-if="background !== null"
class="list-background"
:style="{'background-image': background !== null ? `url(${background})` : false}"></div>
<div
class="list-background background-fade-in"
:class="{'is-visible': background}"
:style="{'background-image': background !== null ? `url(${background})` : false}"></div>
<div class="list-content">
<div class="is-archived-container">
<span class="is-archived" v-if="list.isArchived">

View File

@ -43,6 +43,9 @@
height: 100vh;
position: fixed;
z-index: 0;
}
.background-fade-in {
opacity: 0;
transition: opacity $transition;
transition-delay: $transition-duration * 2; // To fake an appearing background