Skip to content

Commit

Permalink
add new classes for lazyload
Browse files Browse the repository at this point in the history
  • Loading branch information
nathakits committed May 29, 2017
1 parent 5023b1b commit 8c9aac0
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions assets/stylus/components/feature.styl
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,30 @@
// overflow hidden
filter blur(50px)
transform scale(1)

.img-large
&.lazyloaded
opacity 1
transition: opacity .1s linear

.lazy-img
margin auto
overflow hidden

.ratio-box
position relative
height 0
display block

.ratio-box img
.ratio-box iframe
.ratio-box video
position absolute
top 0
left 0
width 100%
height 100%
display block

.Background-img--full-wh-grid
background-position center center
Expand Down

0 comments on commit 8c9aac0

Please sign in to comment.