Skip to content

Commit

Permalink
Fix the opacity of featured articles
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiesigner committed Nov 11, 2019
1 parent 9c620c5 commit b5215a5
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 33 deletions.
2 changes: 1 addition & 1 deletion index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ into the {body} of the default.hbs template --}}
{{/if}}
<div class="m-featured-article__picture">
{{#if feature_image}}
<div class="lozad" data-background-image="{{img_url feature_image size="l"}}"></div>
<div class="lozad no-fade-animation" data-background-image="{{img_url feature_image size="l"}}"></div>
{{/if}}
</div>
<div class="m-featured-article__meta">
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,5 @@
"desktop": "assets/screenshot-desktop.jpg",
"mobile": "assets/screenshot-mobile.jpg"
},
"version": "0.5.7"
"version": "0.5.8"
}
41 changes: 11 additions & 30 deletions src/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/sass/common/_global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ fieldset {
z-index: 5;
}

div.lozad.loaded,
div.lozad.loaded:not(.no-fade-animation),
img.lozad.loaded {
opacity: 0;
@include animation('fadeIn 0.5s forwards');
Expand Down

0 comments on commit b5215a5

Please sign in to comment.