Skip to content

Commit 796661f

Browse files
committed
Prep for release
1 parent 5cdf3ec commit 796661f

File tree

3 files changed

+280
-264
lines changed

3 files changed

+280
-264
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,22 @@ import Img from '@zerodevx/svelte-img'
200200
</style>
201201
```
202202

203+
### New from v1.1
204+
205+
#### Special effects (Reveal)
206+
207+
Reveal images with a fade-in effect (aka medium.com) when they are loaded _and_ in the viewport.
208+
209+
<!-- prettier-ignore -->
210+
```html
211+
<script>
212+
import src from '$lib/a/cat.jpg?run'
213+
import { FxReveal as Img } from '@zerodevx/svelte-img'
214+
</script>
215+
216+
<Img {src} alt="cat" />
217+
```
218+
203219
## To do
204220

205221
- [ ] Add typings

0 commit comments

Comments
 (0)