A utility providing placeholder/fallback image loading.
npm install @cas-smartdesign/image-toolsshowImage
element The target element. Usually a or an ![]()
element.
- src The source of the actual image.
- placeholderSrc The source of the fallback image.
- useCssBackground _(optional)_ Whether the image should be used as a CSS background.
If not specified, it is autodetected based on the element type.