Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it possible to configure carousel's orientation #27

Open
petrovnn opened this issue Dec 22, 2017 · 1 comment
Open

Make it possible to configure carousel's orientation #27

petrovnn opened this issue Dec 22, 2017 · 1 comment

Comments

@petrovnn
Copy link

petrovnn commented Dec 22, 2017

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

@specious
Copy link
Owner

@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 (c25c4cc).

@specious specious changed the title Is it possible to move the current item to the right? Make it possible to configure carousel's orientation Sep 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants