1.0.7 • Published 2 years ago

doz-simple-slideshow v1.0.7

Weekly downloads
1
License
MIT
Repository
github
Last release
2 years ago

doz-simple-slideshow

A simple slideshow for Doz.

Install

npm install doz-simple-slideshow

Live here

Example

new Doz({
root: '#app',
props: {
    images: [
        '<img src="https://images.pexels.com/photos/248797/pexels-photo-248797.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260">',
        '<img src="https://images.pexels.com/photos/459225/pexels-photo-459225.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260">',
        '<img src="https://images.pexels.com/photos/34950/pexels-photo.jpg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260">',
    ]
},
template(h) {
    return h`
        <doz-simple-slideshow items="${this.slideSerialize(this.props.images)}"/>
    `
}
});

Props

NameDefaultDescription
itemsItems that must rotate
delay5sAnimation delay between items
duration1sAnimation duration
staterunningCan be running or paused

CDN unpkg

<script src="https://unpkg.com/doz-simple-slideshow/build/bundle.min.js"></script>

Changelog

You can view the changelog here

License

doz-simple-slideshow is open-sourced software licensed under the MIT license

Author

Fabio Ricali

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago