Skip to content

Commit

Permalink
lazyload优化
Browse files Browse the repository at this point in the history
  • Loading branch information
nexmoe committed Feb 8, 2020
1 parent 445ab39 commit 65c46b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion layout/py.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,11 @@
}
article ul li img.lazyload {
padding-bottom: 100%;
height: 0;
opacity: 0;
}
article ul li img.lazyloaded {
padding-bottom: 0;
opacity: 1;
}
@media screen and (max-width: 768px) {
article ul li {
Expand Down
2 changes: 2 additions & 0 deletions source/css/style.styl
Original file line number Diff line number Diff line change
Expand Up @@ -340,10 +340,12 @@ body {
position: absolute;
left: 0;
top: 0;
opacity: 0;
}
img.lazyloaded {
-webkit-filter: blur(0);
filter: blur(0);
opacity: 1;
}
h1 {
position: absolute;
Expand Down

0 comments on commit 65c46b0

Please sign in to comment.