Skip to content

Commit

Permalink
add opacity to images when lazy loading in carousel (#1739)
Browse files Browse the repository at this point in the history
  • Loading branch information
pizzarob authored and mekarpeles committed Dec 20, 2018
1 parent 1a05705 commit a785cc0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
},
{
"path": "static/build/page-home.css",
"maxSize": "4.3KB"
"maxSize": "4.5KB"
},
{
"path": "static/build/page-plain.css",
Expand Down
5 changes: 5 additions & 0 deletions static/css/components/carousel.less
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
}

.book {

&:last-child {
margin-right: 0;
}
Expand All @@ -77,6 +78,10 @@
}
}

.carousel__item .slick-loading {
opacity: 0;
}

/**
* Carousel (decorated)
* https://github.com/internetarchive/openlibrary/wiki/Design-Pattern-Library#decorated-carousel
Expand Down

0 comments on commit a785cc0

Please sign in to comment.