Skip to content

Commit

Permalink
Improve blur-up effect
Browse files Browse the repository at this point in the history
  • Loading branch information
gmlnchv committed Apr 22, 2019
1 parent a8ae436 commit c1a7056
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 12 deletions.
17 changes: 11 additions & 6 deletions client/css/lazysizes-blur.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
.lazyload-container {
height: 100%;
overflow: hidden;
}

.blur-up {
-webkit-filter: blur(5px);
filter: blur(5px);
-webkit-transition: -webkit-filter 400ms;
transition: -webkit-filter 400ms;
transition: filter 400ms;
transition: filter 400ms, -webkit-filter 400ms;
-webkit-filter: blur(40px);
filter: blur(40px);
-webkit-transition: -webkit-filter 800ms;
transition: -webkit-filter 800ms;
transition: filter 800ms;
transition: filter 800ms, -webkit-filter 800ms;
}

.blur-up.lazyloaded {
Expand Down
14 changes: 8 additions & 6 deletions src/templates/Includes/LazyloadedImage.ss
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<img
class="lazyload blur-up"
src="$LQIP.URL"
data-src="$URL.ATT"
alt="$Title.ATT"
/>
<div class="lazyload-container">
<img
class="lazyload blur-up"
src="$LQIP.URL"
data-src="$URL.ATT"
alt="$Title.ATT"
/>
</div>

0 comments on commit c1a7056

Please sign in to comment.