zerodevx / svelte-img

High-performance responsive/progressive images for SvelteKit
https://zerodevx.github.io/svelte-img/
ISC License
300 stars 11 forks source link

Doubled "class" attribute in Blurred image placeholders #32

Closed nomideusz closed 10 months ago

nomideusz commented 10 months ago

It seems there is an error in the "Blurred image placeholders" docs section. The "class" attribute is used twice here:

<Img class="better-blur" class={loaded} on:load={() => (loaded = true)} {src} alt="cat" />.

zerodevx commented 10 months ago

Thanks, fixed by https://github.com/zerodevx/svelte-img/commit/756e66f68406a1784792e4b9f471a4f780eb3258. Good catch!