Skip to content

Commit c118285

Browse files
committed
Improve blur example
1 parent 7ae6014 commit c118285

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ const src = [
211211
]
212212
</script>
213213
214-
<Img {src} alt="hello" />
214+
<Img {src} alt="cat" />
215215
```
216216

217217
The order doesn't matter; `svelte-img` internally sorts out the source priority based on:
@@ -233,10 +233,10 @@ import src from '$lib/a/cat.jpg?run'
233233
import Img from '@zerodevx/svelte-img'
234234
</script>
235235
236-
<Img {src} alt="cat" />
236+
<Img class="better-blur" {src} alt="cat" />
237237
238238
<style>
239-
:global(img)::after {
239+
:global(img.better-blur)::after {
240240
content: '';
241241
position: absolute;
242242
inset: 0;

0 commit comments

Comments
 (0)