How To Make The Carousel Stop At The End - Question | JoomShaper
Black Friday sale is live with flat 50% OFF. Sale ends soon! Grab your deal now!

How To Make The Carousel Stop At The End

BK

Benjamin Komenda

SP Page Builder 4 years ago

Hello, i am trying to use a carousel pro to display a long text in segments (like with pagebreaks). Is there a way to make the carussel stop at the last item an not return to the first item again? Alternativly is the another addon that can achieve this?

Thanks in Advance

0
5 Answers
BK
Benjamin Komenda
Accepted Answer
4 years ago #35323

well i got it to work by adding data-wrap="false" in

components/com_sppagebuilder/addons/carouselpro/site.php

i hope this helps someone else:

before:

//Output start
        $output = '';
        $output  .= '<div id="sppb-carousel-'. $this->addon->id .'" data-interval="'.$interval.'" class="sppb-carousel sppb-carousel-pro sppb-slide' . $class . '"'. $carousel_autoplay .'>';

after:

//Output start
        $output = '';
        $output  .= '<div id="sppb-carousel-'. $this->addon->id .'" data-interval="'.$interval.'" data-wrap="false" class="sppb-carousel sppb-carousel-pro sppb-slide' . $class . '"'. $carousel_autoplay .'>';

I really hope this becomes a feature, it would be trivial to implement.

0
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 4 years ago #35008

Hi,

Could you please give me an example what actually you are looking for?

-Thank you

0
BK
Benjamin Komenda
Accepted Answer
4 years ago #35021

i am looking for a behaviour like in this example: https://www.w3schools.com/bootstrap/tryit.asp?filename=trybs_ref_js_carousel_wrap_data&stacked=h

this carousel stops at the last element.

-Thank you

0
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 4 years ago #35204

There is no default option like this on page builder. You have to customize it by yourself as we do not provide customization support

Hope you understand.

Thank you

0
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 4 years ago #35343

Glad to know that

Thank you for sharing

0