ios - How to Animate Tableviewcells in a ScrollWheel fashion?, Swift -


i attempting animate tableview looks scroll wheel when scrolling , down. similar picture.

here code i've made animate tableview when scrolling. unfortunately, not resemble scroll wheel in slightest. question is, changes need make desired result? need rewrite completely? assume not need spritekit this?

       //setup catransform3d structure     var rotation:catransform3d = catransform3dmakerotation(cgfloat((90.0*m_pi)/180), cgfloat(0.0), cgfloat(0.7), cgfloat(0.4))     rotation.m34 = (1.0/(-600))      //define initial state     cell.layer.shadowcolor = uicolor.blackcolor().cgcolor     cell.layer.shadowoffset = cgsizemake(10, 10)     cell.alpha = 0      cell.layer.transform = rotation     cell.layer.anchorpoint = cgpointmake(0, 0.5)      //!!!fix issue #1 cell position wrong------------     if(cell.layer.position.x != 0)     {         cell.layer.position = cgpointmake(0, cell.layer.position.y);     }      //defines final state after animation     uiview.animatewithduration(0.8, animations: {         cell.layer.transform = catransform3didentity         cell.alpha = 1         cell.layer.shadowoffset = cgsizemake(0, 0)     }, completion: nil) 

this animation looks like


Comments

Popular posts from this blog

node.js - Using Node without global install -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - Null response to php query in android, even though php works properly -