-
lazyload
-
Description
Loads an image once it is in a certain margin in the viewport. This includes vertical and horizontal scrolling.
Parameters
Name Type Description rootMargin
string The root element's bounding box before the intersection test is performed. Default: 0px.
threshold
number The percentage of the image's visibility at which point the image should load. Default: 0.1 (10%).
Returns
Examples
<AdvancedImage style={{width: "400px", height: "400px"}} cldImg={img} plugins={[lazyload({rootMargin: '0px', threshold: 0.25})]} />
Details