cloud9carousel icon indicating copy to clipboard operation
cloud9carousel copied to clipboard

Make it possible to configure carousel's orientation

Open petrovnn opened this issue 8 years ago • 1 comments

Hello!

Is it possible to make the current element on the right, as on this fiddle? https://jsfiddle.net/petrovnn/aj4xyfoc/

22-12-2017 16-48-09

I found this code and added: - Math.PI/2:

this.go = function( count ) {
     this.destRotation += ((Math.PI * 2 / this.items.length) * count) - Math.PI/2;
     this.play();
}

But it does not work completely. Click the mouse on the element - it works. Click on the arrow - does not work

petrovnn avatar Dec 22 '17 13:12 petrovnn

@petrovnn, thank you for mentioning this!

Until I saw your demo showing the carousel in a flat top-down arrangement, I hadn't even thought about this notion.

I think adding a configuration option to set the carousel's orientation to be in any direction could play a useful role in a situation such as this one.

I added your jsfiddle as a demo in the README (c25c4ccf21c0f831142b313d0e733b79a6731bb2).

specious avatar Dec 26 '17 17:12 specious