placeholder

Description

Displays a placeholder image until the original image loads.

Parameters
Name Type Description
mode PlaceholderMode

The type of placeholder image to display. Possible modes: 'vectorize' | 'pixelate' | 'blur' | 'predominant-color'. Default: 'vectorize'.

Returns
Examples

NOTE: The following is in React. For further examples, see the Packages tab.

<AdvancedImage cldImg={img} plugins={[placeholder({mode: 'blur'})]} />