Skip to content
This repository has been archived by the owner on Jun 23, 2023. It is now read-only.

Commit

Permalink
Don't animate pre-loaders once gallery images are loaded (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
mayankchhabra authored Oct 6, 2022
1 parent 5e5ae03 commit 0979111
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/global-styles/custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ svg.icon-clock {
object-fit: contain;
border-radius: 10px;
opacity: 1;
transition: opacity 0.5s ease;
transition: opacity 0.3s linear;
&.loading {
opacity: 0;
}
Expand All @@ -769,7 +769,9 @@ svg.icon-clock {
filter: blur(70px) saturate(2);
z-index: -1;
border-radius: 5px;
animation: app-gallery-image-preloader linear infinite 5s;
&.loading {
animation: app-gallery-image-preloader linear infinite 5s;
}
}
&:nth-child(1) {
.app-gallery-image-preloader {
Expand Down
3 changes: 2 additions & 1 deletion src/views/AppStore/AppStoreAppGalleryImage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
>
<img
class="app-gallery-image-preloader"
:class="!imageLoaded ? 'loading' : ''"
:src="`https://getumbrel.github.io/umbrel-apps-gallery/${appId}/icon.svg`"
/>
<img
:class="!this.imageLoaded ? 'loading' : ''"
:class="!imageLoaded ? 'loading' : ''"
class="app-gallery-image"
:src="`https://getumbrel.github.io/umbrel-apps-gallery/${appId}/${image}`"
@load="onGalleryImageLoad"
Expand Down

0 comments on commit 0979111

Please sign in to comment.