ios - icarousel Vertical Scroll Effect on tableview with images -


i trying apply icarousel vertical type effect on tableview cell images. not set vertical scroll effect. check this, https://github.com/nicklockwood/icarousel in example set horizontal scroll effect. , want set vertical type effect. , suggest me demo link or proper code solution.

this code ...

- (catransform3d)carousel:(icarousel *)carousel itemtransformforoffset:(cgfloat)offset basetransform:(catransform3d)transform {      const cgfloat centeritemzoom = 1.6;     const cgfloat centeritemspacing = 1.5;      cgfloat spacing = [self carousel:carousel valueforoption:icarouseloptionspacing withdefault:1.0f];     cgfloat absclampedoffset = min(1.0, fabs(offset));     cgfloat clampedoffset = min(1.0, max(-1.0, offset));     cgfloat scalefactor = 1.0 + absclampedoffset * (1.0/centeritemzoom - 1.0);     offset = (scalefactor * offset + scalefactor * (centeritemspacing - 1.0) * clampedoffset) * carousel.itemwidth * spacing;      if (carousel.vertical)     {         transform = catransform3dtranslate(transform, 0.0f, offset, -absclampedoffset);     }     else     {         transform = catransform3dtranslate(transform, offset, 0.0f, -absclampedoffset);     }      transform = catransform3dscale(transform, scalefactor, scalefactor, 2.0f);      return transform;  } 

but not work requirement. thank x in advance

if want vertical scroll add in code

    self.carousel.vertical = !self.carousel.vertical; 

Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -