nicklockwood/iCarousel — Issue #79: Good way to add custom tweaks to views based on offset
Author: alleus
Created: 2012-01-19 10:24:14+00:00
State: open

Hi!

First of all, love the control. There's some really awesome work behind this, and it's appreciated that you've decided to share this with the rest of the world!

Now, to my question. I'm interested in doing some custom stuff with the views in my carousel. More specifically, I want to fade items when they are further from the center offset. Basically the results going for is a custom implementation of the alpha method (the fade I'm trying to implement can't use alpha, since that would get a bit too messy).

Going through the code I realized that the deprecated `transformForItemView:withOffset:` would have done the trick. Also, there is a NSLog that mentions a `transformForItemAtIndex:withOffset:baseTransform:` that would also have worked. I can also do it the other way around by looping through the views on `carouselDidScroll:` (I don't have that many items), but I can't seem to find a `offsetForItem:` method or something similar.

Any ideas? :)