Skip to content

Commit

Permalink
perf(ux): improve LQIP fade in effect
Browse files Browse the repository at this point in the history
  • Loading branch information
cotes2020 committed May 12, 2023
1 parent 7c23a4e commit 003e7b6
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions _sass/addon/commons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,9 @@ a {
img {
max-width: 100%;
height: auto;
transition: all 0.35s ease-in-out;

&[data-src] {
&.lazyloaded {
-webkit-animation: fade-in 0.4s ease-in;
animation: fade-in 0.4s ease-in;
}

&[data-lqip='true'] {
&.lazyload,
&.lazyloading {
Expand All @@ -105,6 +101,11 @@ img {
&.lazyloading {
background: var(--img-bg);
}

&.lazyloaded {
-webkit-animation: fade-in 0.35s ease-in;
animation: fade-in 0.35s ease-in;
}
}

&.shadow {
Expand Down Expand Up @@ -946,17 +947,13 @@ $sidebar-display: 'sidebar-display';
} /* #sidebar */

@media (hover: hover) {
.card.post-preview {
transition: all 0.35s ease-in-out;

img {
transition: all 0.35s ease-in-out;
}
}

#sidebar ul > li:last-child::after {
transition: top 0.5s ease;
}

.post-preview {
transition: background-color 0.35s ease-in-out;
}
}

.profile-wrapper {
Expand Down

0 comments on commit 003e7b6

Please sign in to comment.