1.0.4 • Published 2 years ago

nodebb-plugin-swiper v1.0.4

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

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:

Preview:

Syntax

##image-slider-start
![fun](https://media.tenor.com/images/11fc14bb1b8dc3efbf7aa496432601d4/tenor.gif)
![dance](https://media.tenor.com/images/82f7d090429ddc3e5ae33d7244d369c2/tenor.gif)
![happy](https://media.tenor.com/images/a12ac6302bccc01652b7f4b33a034777/tenor.gif)
##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
1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago