hexo-theme-stellar/source/css/_plugins/lazyload.styl

32 lines
710 B
Stylus

trans-cover($p, $t = 0.28s)
trans2pro: transform 0.5s $p $t
trans-site($p)
trans2: box-shadow transform $p
trans-user($p)
trans3: box-shadow transform $p
if hexo-config('plugins.lazyload.transition') == 'blur'
img.lazy
trans-cover filter
&:not(.loaded)
filter blur(8px)
-webkit-filter blur(8px)
&.loaded,&.error
filter none
-webkit-filter none
.site-card .card-link>img
trans-site filter
.user-card .card-link>img
trans-user filter
else
img.lazy
trans-cover opacity 0.5s
&:not(.loaded)
opacity: 0
&.loaded,&.error
opacity: 1
.site-card .card-link>img
trans-site opacity
.user-card .card-link>img
trans-user opacity