I want to create a small sub view which has 3 buttons(say A,B,C) in it. The view should have an infinite scroll so that it should create a circular loop for those buttons when I scroll ie. if I scroll the view, the buttons' order should be like A->B->C->A->B->C....and so on. Also if I scroll from say, A to B and as soon as the B button appears at the center of the view, the action for that button should be performed. So which ever button appears at the center due to the scroll, the action for that particular button should be performed(something like pickerview). Among those 3 buttons I mentioned, one button should be at the center and the other 2 buttons on the left and right should be half hidden, so that the user knows there are other buttons inside the view.
To sum up, I want exactly like this flip button shown in the picture.