nicklockwood / iCarousel

A simple, highly customisable, data-driven 3D carousel for iOS and Mac OS
http://www.charcoaldesign.co.uk/source/cocoa#icarousel
Other
12k stars 2.58k forks source link

create iCarousel items with different offset values #307

Open winmhtun opened 11 years ago

winmhtun commented 11 years ago

Hi nick,

Your library is very impressive and easy to use.

However, I am wondering if I could create items with different offset values within a single carousel.

Example : http://mrdoob.github.com/three.js/examples/css3d_youtube.html

If that is not a correct way to start, please advise me on this.

Thank you very much.

nicklockwood commented 11 years ago

iCarousel isn't really designed for this. It would require you to return different transforms for the same offset depending on the item index, which iCarousel's delegate doesn't currently let you do.

You could probably hack a way of doing it by modifying the iCarousel library code to expose the item index in the itemTransformForOffset: method.