svelte-polaroids
v0.0.7
Published
- a simple polaroid photo component - great for letting users browse sequential images - only dependency is interactjs
Downloads
6
Maintainers
Readme
svelte-polaroids
- a simple polaroid photo component
- great for letting users browse sequential images
- only dependency is interactjs
gif demo
usage
<script>
import SveltePolaroid from "svelte-polaroids";
</script>
<SveltePolaroid size={200} sources={[ 'https://.../pic1.jpg', 'https://.../pic2.jpg', ... ]} />
props
- size: maximum for the larger of the image's two dimensions
- sources: urls of the images to be used
authors
- written by tylerb1
- designed by Jennifer Herzberg
- adopted from a demo by Sam Smith