feat: use blurHash when loading list backgrounds #1188

Merged
konrad merged 13 commits from feature/blur-hash into main 2022-04-02 15:05:31 +00:00
3 changed files with 8 additions and 4 deletions
Showing only changes of commit 33158167d5 - Show all commits

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
Review

I'm not quite sure why <transition> did not work here.

I'm not quite sure why `<transition>` did not work here.