ninjatronic / angular-flipsnap

AngularJS Flipsnap Directive
MIT License
23 stars 4 forks source link

Add an initial position option #5

Open beaubarbour opened 9 years ago

beaubarbour commented 9 years ago

Thanks for this great component. It's like butter.

Question... How do I load the initial flipsnap array at position 1 (instead of 0), so the user can swipe left or right to proceed?

Thanks in advance!

ninjatronic commented 9 years ago

At the moment this doesn't exist as an option in angular-flipsnap.js or even on flipsnap.js. There's some work to be done to both to support it.

As a workaround, is it enough for you to call flipsnap.toNext(0) on init?

beaubarbour commented 9 years ago

Thanks for the response Pete! I’ll try the workaround and let you know how it goes.

-b

On Mar 19, 2015, at 6:58 AM, Pete Martin notifications@github.com wrote:

At the moment this doesn't exist as an option in angular-flipsnap.js or even on flipsnap.js. There's some work to be done to both to support it.

As a workaround, is it enough for you to call flipsnap.toNext(0) on init?

— Reply to this email directly or view it on GitHub https://github.com/ninjatronic/angular-flipsnap/issues/5#issuecomment-83590449.