Ember addon for Swiper slider v6 library.
- Ember.js v3.16 or above
- Ember CLI v2.13 or above
- Node.js v10 or above
ember install ember-swiper6
You can change all global configuration settings via config/environment.js
file.
Please check Swiper site for more configuration details.
ENV['ember-swiper6'] = {
speed: 450,
loop: true, // etc
};
You can import only modules you want.
Available module names:
- a11y
- autoplay
- controller
- effect-coverflow
- effect-cube
- effect-fade
- effect-flip
- hash-navigation
- history
- keyboard
- lazy
- mousewheel
- navigation
- pagination
- parallax
- scrollbar
- thumbs
- virtual
- zoom
ENV['ember-swiper6'] = {
imports: '*', // or ["*"] for every modules
};
ENV['ember-swiper6'] = {
imports: ['a11y', 'pagination', 'navigation'], // only these modules
};
Default configuration
Full configuration
All slideXXX events returns swiper instance. That way you can reach all properties like realIndex etc...
Note: If you use sass or less; ember-swiper6 will be imported automatically.
In ember-swiper6 file; after the //IMPORT_COMPONENTS line you should import the component(s) you need.
Ex: For scrollbar: @import './components/scrollbar/scrollbar'; etc...
See the Contributing guide for details.
This project is licensed under the MIT License.