svelte-turnjs
v1.0.5
Published
Integration of turn.js into Svelte 5
Maintainers
Readme
svelte-turnjs
A Svelte 5 component library that provides a book-like page flip animation using turn.js.
Features
- Seamless integration with Svelte 5
- Smooth page flip animations
- Customizable book layouts
- Responsive design
- Easy-to-use components
Installation
npm install svelte-turnjsUsage
Using a list of images
<script>
import { ImageFlip } from 'svelte-turnjs';
let images =[
"https://picsum.photos/400/600/",
"https://picsum.photos/400/600/"
]
let size = [400,600] // width, height of images
</script>
<ImageFlip {size} {images} />Documentation
For detailed documentation and examples, visit our documentation page.
Requirements
- Svelte 5
- turn.js library
- jquery
Contributing
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
