srujana
srujana

Reputation: 453

How to achieve circular flow of scrolling in ngx-carousel in angular4?

Iam working on angular4 project.Here I have a need of displaying multiple items in a slide in a carousel.For that one I have used ngx-carousel.It works fine but on completion of elements in the looping array,the slider scroll back again violating the circular flow.How can I implement the ngx-carousel to slide to first element without roll-back again(continuous flow)?

Upvotes: 1

Views: 1146

Answers (2)

BlizZard
BlizZard

Reputation: 579

This feature is added in the latest release of ngx. Add-

<carousel [noWrap]="false"> "Your code" </carousel>

to get the the continuous flow while clicking on next or previous button.

Upvotes: 1

ForestG
ForestG

Reputation: 18113

it is yet to be implemented, according to the github issues of ngx-carousel.

If you are looking for alternative solutions, I suggest Bootstrap carousel. It even has the circular flow you aim for.

Upvotes: 1

Related Questions