1.0.4 • Published 4 years ago
nodebb-plugin-swiper v1.0.4
nodebb-plugin-swiper
NOTE
This is a fork from package https://github.com/me-cooper/nodebb-plugin-makesmart-gallery.
What news?
- Support composer preview (Not lazy loading => to prevent flickering)
- Default lazy loading in post/topic/user signature
- Configable Swipe (WIP)
- Add to npm for easy install through ACP
- Keyboard swipe control, click on image to hide nav arrow, pagination
- Add swiper button to composer toolbar.
Install
Install from nodebb Admin control panel > extend > Plugins > nodebb-plugin-swiper
or
npm install nodebb-plugin-swiper
or
yarn add nodebb-plugin-swiper
Preview:
Syntax
##image-slider-start



##image-slider-end
This simple syntax creates a slim and nice image-gallery:
It uses Swiper as slider. You can look trough the examples to customize your slider if you want. To change behaviour edit static/lib/main.js.
const swiperDefaultConfig = {
...
// Dont edit these lines.
autoHeight: false,
lazy: true,
preloadImages: false,
}
To-Do:
- Display Image-Slider in the composer preview as well