Ember addon for Swiper slider v7 library.
- Ember.js v3.28 or above
- Ember CLI v3.28 or above
- Node.js v14 or above
ember install ember-swiper7
- Ember.js v3.20 or above
- Ember CLI v3.20 or above
- Node.js v12 or above
You can change all global configuration settings via config/environment.js
file.
Please check Swiper site for more configuration details.
ENV['ember-swiper7'] = {
speed: 450,
loop: true, // etc
};
You can import only modules you want.
NOTICE: All module names are case-sensitive.
Available module names:
- A11y
- Autoplay
- Controller
- EffectCards
- EffectCoverflow
- EffectCreative
- EffectCube
- EffectFade
- EffectFlip
- FreeMode
- Grid
- HashNavigation
- History
- Keyboard
- Lazy
- Manipulation
- Mousewheel
- Navigation
- Pagination
- Parallax
- Scrollbar
- Thumb
- Virtual
- Zoom
ENV['ember-swiper7'] = {
imports: '*', // or ["*"] for every modules
};
ENV['ember-swiper7'] = {
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-swiper7 will be imported automatically.
In ember-swiper7 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.