Zen Swiper

 is an innovative add-on for Concrete CMS that allows for the easy integration of a block using SwiperJS - a powerful, modern library for creating swipeable carousels.

Installation Instructions

  • Unzip this file in your site's packages/ directory.
  • Login to your site as an administrator.
  • Find the "Extend concrete5" page in your dashboard.
  • Find this package in the list of packages awaiting installation.
  • Click the "install" button.
christopher-campbell-rDEOVtE7vOs-unsplash.resized.jpg
Mobile-Optimized, Fast & Fluid

Experience the ultimate responsive design with our SwiperJS slider, perfect for any device.

brooke-cagle-NoRsyXmHGpI-unsplash.resized.jpg
Customizable & Powerful

Unleash the full potential of your content with our highly adaptable SwiperJS slider.

ayo-ogunseinde-sibVwORYqs0-unsplash.resized.jpg
Engage Your Audience Like Never Before

Capture attention instantly with stunning animations and SwiperJS precision.

A bouquet of flowers
Smooth Transitions, Seamless Experience

Elevate your website with our SwiperJS-powered slider for effortless navigation.

Default:

christopher-campbell-rDEOVtE7vOs-unsplash.resized.jpg
Mobile-Optimized, Fast & Fluid

Experience the ultimate responsive design with our SwiperJS slider, perfect for any device.

brooke-cagle-NoRsyXmHGpI-unsplash.resized.jpg
Customizable & Powerful

Unleash the full potential of your content with our highly adaptable SwiperJS slider.

ayo-ogunseinde-sibVwORYqs0-unsplash.resized.jpg
Engage Your Audience Like Never Before

Capture attention instantly with stunning animations and SwiperJS precision.

A bouquet of flowers
Smooth Transitions, Seamless Experience

Elevate your website with our SwiperJS-powered slider for effortless navigation.

A bouquet of flowers
christopher-campbell-rDEOVtE7vOs-unsplash.resized.jpg
brooke-cagle-NoRsyXmHGpI-unsplash.resized.jpg
ayo-ogunseinde-sibVwORYqs0-unsplash.resized.jpg
A bouquet of flowers
christopher-campbell-rDEOVtE7vOs-unsplash.resized.jpg
brooke-cagle-NoRsyXmHGpI-unsplash.resized.jpg
ayo-ogunseinde-sibVwORYqs0-unsplash.resized.jpg
A bouquet of flowers
christopher-campbell-rDEOVtE7vOs-unsplash.resized.jpg
brooke-cagle-NoRsyXmHGpI-unsplash.resized.jpg
ayo-ogunseinde-sibVwORYqs0-unsplash.resized.jpg

Pagination progress:

  • check "Navigation"
  •  check "Pagination"
    • select "Progressbar" in "Pagination Type"
A bouquet of flowers
christopher-campbell-rDEOVtE7vOs-unsplash.resized.jpg
brooke-cagle-NoRsyXmHGpI-unsplash.resized.jpg
ayo-ogunseinde-sibVwORYqs0-unsplash.resized.jpg

Pagination fraction:

  • check "Navigation"
  • check "Pagination"
    • select "Fraction" in "Pagination Type"
A bouquet of flowers
christopher-campbell-rDEOVtE7vOs-unsplash.resized.jpg
brooke-cagle-NoRsyXmHGpI-unsplash.resized.jpg
ayo-ogunseinde-sibVwORYqs0-unsplash.resized.jpg
A bouquet of flowers
christopher-campbell-rDEOVtE7vOs-unsplash.resized.jpg
brooke-cagle-NoRsyXmHGpI-unsplash.resized.jpg
ayo-ogunseinde-sibVwORYqs0-unsplash.resized.jpg

Vertical:

To ensure that Zen Swiper displays correctly when using the 'vertical' direction setting, you need to set a fixed height instead of using a percentage-based height.

 

Zrzut ekranu z 2023-09-23 10-31-49.pngYou can also set a fixed height for the surrounding div element that contains Zen Swiper, either in pixels (e.g., 'px') or as a percentage of the viewport height (e.g., '100vh').

 

Sample settings:

Change "slider size" to 'custom.' Set 'height' to 'fixed.' Change 'Height value' to appropriate value.

  • direction: "Vertical"
  • check "Pagination"
  • a) check "Clickable"
A bouquet of flowers
christopher-campbell-rDEOVtE7vOs-unsplash.resized.jpg
brooke-cagle-NoRsyXmHGpI-unsplash.resized.jpg
ayo-ogunseinde-sibVwORYqs0-unsplash.resized.jpg

Space Between:
 

  • - add value to"Space Between" (.px)
  • - check "Pagination"
  • a) "Clickable"
A bouquet of flowers
christopher-campbell-rDEOVtE7vOs-unsplash.resized.jpg
brooke-cagle-NoRsyXmHGpI-unsplash.resized.jpg
ayo-ogunseinde-sibVwORYqs0-unsplash.resized.jpg

Slides per view:

- set the number of slides ("Slides per view")

- add value to "Space between" (px)

- check "Pagination"

a) check "Clickable

A bouquet of flowers
christopher-campbell-rDEOVtE7vOs-unsplash.resized.jpg
brooke-cagle-NoRsyXmHGpI-unsplash.resized.jpg
ayo-ogunseinde-sibVwORYqs0-unsplash.resized.jpg

Slides per view auto:
- slidesPerView: "auto"

- spaceBetween: 30

- check "Pagination"

- check "Clickable"

A bouquet of flowers
christopher-campbell-rDEOVtE7vOs-unsplash.resized.jpg
brooke-cagle-NoRsyXmHGpI-unsplash.resized.jpg
ayo-ogunseinde-sibVwORYqs0-unsplash.resized.jpg

Centered:
"Centered Slides" works when there is more than one slide in the view.

- set the number od slides ("Slides per view")

- add value to "Space Between" (px)

- check "Centered Slides"

- check "Pagination"

- check "Clickable"

A bouquet of flowers
christopher-campbell-rDEOVtE7vOs-unsplash.resized.jpg
brooke-cagle-NoRsyXmHGpI-unsplash.resized.jpg
ayo-ogunseinde-sibVwORYqs0-unsplash.resized.jpg

Centered auto:
 

- slides per view ("auto")
- centered slides (true)
- space between (30)
- check "Pagination"

- clickable (true)

nathan-anderson-9rNyml9OKfI-unsplash.jpg
kimon-maritz-jl2T_E4tUyo-unsplash.jpg
jess-aston-DvopK4gNs8A-unsplash.jpg
pawel-nolbert-4u2U8EO9OzY-unsplash.jpg
annie-spratt-4aBqbv0Nplw-unsplash.jpg

Freemode
-
slides per view (3)
- space between (30)
- check freeMode (true)
- check "Pagination"
- check "Clickable"

A bouquet of flowers
christopher-campbell-rDEOVtE7vOs-unsplash.resized.jpg
brooke-cagle-NoRsyXmHGpI-unsplash.resized.jpg
ayo-ogunseinde-sibVwORYqs0-unsplash.resized.jpg

Grab cursor:
- slides per view (3)
- centered slides (true)
- space between (30)
- grab cursor (true)
- check "Pagination"
- clickable (true)

A bouquet of flowers
christopher-campbell-rDEOVtE7vOs-unsplash.resized.jpg
brooke-cagle-NoRsyXmHGpI-unsplash.resized.jpg
ayo-ogunseinde-sibVwORYqs0-unsplash.resized.jpg

Infinite loop:
- slides per view (1)
- space between (30)
- Loop Mode: loop
- check "Pagination"
- clickable (true)
- check "Navigation"

A bouquet of flowers
christopher-campbell-rDEOVtE7vOs-unsplash.resized.jpg
brooke-cagle-NoRsyXmHGpI-unsplash.resized.jpg
ayo-ogunseinde-sibVwORYqs0-unsplash.resized.jpg

Effect fade:

When using the 'fade' transition effect, please note that you can have only one slide per view and one slide per group. The settings 'centered slides,' 'Space between slides,' and 'Slide to clicked slide' are not available for this transition.

 

Sample settings:
- space between
- effect: "fade"
- check "Navigation"
- check "Pagination"
- clickable (true)

A bouquet of flowers
christopher-campbell-rDEOVtE7vOs-unsplash.resized.jpg
brooke-cagle-NoRsyXmHGpI-unsplash.resized.jpg
ayo-ogunseinde-sibVwORYqs0-unsplash.resized.jpg

Effect cube:

When using the 'cube' transition effect, please note that you can have only one slide per view and one slide per group. The settings 'centered slides,' 'Space between slides,' and 'Slide to clicked slide' are not available for this transition.

 

In the case of the cube effect, images are attached to the sides of the cube starting from the top-left corner. To ensure that the cube's sides are fully covered by the images, the images should be equal to or larger than the cube's sides. It's also a good practice to make sure that the images are of the same size for consistency.

 

You can achieve this effect using custom CSS as follows:

.swiper-slide {
  background-position: center;
  background-size: cover;
}

.swiper-slide img {
  display: block;
  width: 100%;
}

Simply add this CSS code to your project to make the cube effect work seamlessly with properly sized and centered images on each side of the cube.

Sample settings:
- effect ("Cube")
- grab cursor (true)
- cube effect
a) shadow (true)
b) slide shadows (true)
c) shadow offset (20)
d) shadow scale
- pagination

 

A bouquet of flowers
christopher-campbell-rDEOVtE7vOs-unsplash.resized.jpg
brooke-cagle-NoRsyXmHGpI-unsplash.resized.jpg
ayo-ogunseinde-sibVwORYqs0-unsplash.resized.jpg

Effect coverflow:
- effect: "coverflow"
- grab cursor (true),
- centered slides (true),
- slides per view (auto)
- cover flow effect
a) rotate (50)
b) stretch (0)
c) depth (100)
d) modifier (1)
e) slide shadows (true)
- check pagination

A bouquet of flowers
christopher-campbell-rDEOVtE7vOs-unsplash.resized.jpg
brooke-cagle-NoRsyXmHGpI-unsplash.resized.jpg
ayo-ogunseinde-sibVwORYqs0-unsplash.resized.jpg

Effect flip:
When using the 'flip' transition effect, please note that you can have only one slide per view and one slide per group. The settings 'centered slides,' 'Space between slides,' and 'Slide to clicked slide' are not available for this transition.

 

Sample settings:
- effect: "flip",
- grab cursor: true,
- check "Pagination",
- check "Navigation

A bouquet of flowers
christopher-campbell-rDEOVtE7vOs-unsplash.resized.jpg
brooke-cagle-NoRsyXmHGpI-unsplash.resized.jpg
ayo-ogunseinde-sibVwORYqs0-unsplash.resized.jpg

Effect cards:

- effect: "cards",
- grabCursor: true,

A bouquet of flowers
christopher-campbell-rDEOVtE7vOs-unsplash.resized.jpg
brooke-cagle-NoRsyXmHGpI-unsplash.resized.jpg
ayo-ogunseinde-sibVwORYqs0-unsplash.resized.jpg

Keyboard control:
- slides per view (1)
- space between (30)
- check 'Keyboard'
- check "Pagination"
a) clickable (true)
- check "Navigation"

A bouquet of flowers
christopher-campbell-rDEOVtE7vOs-unsplash.resized.jpg
brooke-cagle-NoRsyXmHGpI-unsplash.resized.jpg
ayo-ogunseinde-sibVwORYqs0-unsplash.resized.jpg

Mousewheel control:
- direction "vertical"

- set slider side: custom and Height: fixed. Set value in px.

- slides per view (1)
- space between (30)
- check "Mousewheel"
- check "Pagination"
a) check "Clickable"
 

A bouquet of flowers
christopher-campbell-rDEOVtE7vOs-unsplash.resized.jpg
brooke-cagle-NoRsyXmHGpI-unsplash.resized.jpg
ayo-ogunseinde-sibVwORYqs0-unsplash.resized.jpg

Autoplay:

- space between (30)
- centered slides (true)
- autoplay (true)
- delay (2500)
- disable on Interaction
- check "Pagination"
- check "Clickable"
- check "Navigation"

A bouquet of flowers
christopher-campbell-rDEOVtE7vOs-unsplash.resized.jpg
brooke-cagle-NoRsyXmHGpI-unsplash.resized.jpg
ayo-ogunseinde-sibVwORYqs0-unsplash.resized.jpg

Responsive breakpoints:
-
check "Breakpoints enabled"
- add values for the number of slides and spacing to the table

A bouquet of flowers
christopher-campbell-rDEOVtE7vOs-unsplash.resized.jpg
brooke-cagle-NoRsyXmHGpI-unsplash.resized.jpg
ayo-ogunseinde-sibVwORYqs0-unsplash.resized.jpg

Autoheight
- check "AutoHeight"
- spaceBetween
- check "Navigation"
- check "Pagination"
- check "Clickable"

A bouquet of flowers
christopher-campbell-rDEOVtE7vOs-unsplash.resized.jpg
brooke-cagle-NoRsyXmHGpI-unsplash.resized.jpg
ayo-ogunseinde-sibVwORYqs0-unsplash.resized.jpg

Rewind
- rewind (true)

- check "Navigation"

A bouquet of flowers
1
christopher-campbell-rDEOVtE7vOs-unsplash.resized.jpg
brooke-cagle-NoRsyXmHGpI-unsplash.resized.jpg
ayo-ogunseinde-sibVwORYqs0-unsplash.resized.jpg

How to Set the alt Attribute for Images in Zen Swiper Slides

To ensure proper accessibility and SEO optimization for images in your Zen Swiper block, you can set the alt attribute for each image displayed in the slider. The alt attribute provides alternative text for the image if it fails to load, and it is also used by screen readers for visually impaired users.

Here’s how to add the alt attribute for images in Zen Swiper:

Steps to Set the alt Attribute:

  1. Log in to Concrete CMS:

    • Access the Concrete CMS dashboard as an administrator.
  2. Navigate to the File Manager:

    • Go to the File Manager from the dashboard or the page you are editing.
  3. Select the Image:

    • Find and click on the image you want to add the alt text for.
  4. Edit the Image:

    • Once the image is selected, you will see options to edit the image properties.
  5. Set the Description:

    • In the Description field, enter the alternative text you want to use for the image. This description will be used as the alt attribute in the Zen Swiper slider.
  6. Save Changes:

    • After adding the description, save the changes. The description you provide will automatically be applied as the alt text for the image when it is displayed in the Zen Swiper slider.

Why Add an alt Text?

  • Accessibility: The alt text helps visually impaired users understand the content of the image through screen readers.
  • SEO: Search engines use the alt attribute to index images, which can improve your website's search engine ranking.