Closed nothingrandom closed 4 years ago
lazysizes supports blurring images using the following;
.blur-up { -webkit-filter: blur(5px); filter: blur(5px); transition: filter 400ms, -webkit-filter 400ms; } .blur-up.lazyloaded { -webkit-filter: blur(0); filter: blur(0); }
To allow this, you need to add both the lazyload and blur-up class to the image. IMO, the best way to do this is switch className to an array to allow for multiple classes.
lazyload
blur-up
className
Yes, that's a good suggestion. Thanks @liamfiddler
lazysizes supports blurring images using the following;
To allow this, you need to add both the
lazyload
andblur-up
class to the image. IMO, the best way to do this is switchclassName
to an array to allow for multiple classes.