Skip to content

Commit 6b6983d

Browse files
committed
Add example
1 parent d1666e8 commit 6b6983d

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

image-animation-property/README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,20 @@ img:hover, img:focus {
231231
}
232232
```
233233

234+
<p id=ex-carousel>
235+
Interesting effects can easily be achieved in combination with other CSS:
236+
```css
237+
.carousel {
238+
overflow: scroll;
239+
scroll-snap-type: both mandatory;
240+
}
241+
.carousel img {
242+
scroll-snap-align: center;
243+
image-animation: paused;
244+
}
245+
.carousel img:snapped { image-animation: play; }
246+
```
247+
234248
### Possible Extensions
235249

236250
#### Control Over Iterations

0 commit comments

Comments
 (0)