上下两collectionView互相联动,cell居中丝滑停靠。
The upper and lower two collectionViews are linked to each other, and the cell will always finally stop smoothly in the middle.
高仿 陌生人社交App「遇见」 超高难度页面。全网唯一!!!
Highly mimicked the effect of 「遇见」App's most difficult page. This is the only creation on the whole web.
Slide or click cell of the upper collectionView, then the cell will automatically stop in the middle when the slide ends, and concurrently link the under collectionView scrolling and stop.
注意:上面的collection,快速滑动,离手后惯性继续滑动,丝滑停靠,非'常见的离手则停'。 Note: A quick slide of the above collectionView will cause it to continue to slide with inertial after the hand leaves, slow down and eventually slide to a smooth stop , not normally 'stop when it leaves the hand'. The same goes for the collectionView below
Slide or click cell of the under collectionView, then the cell will automatically stop in the middle when the slide ends, and concurrently link the upper collectionView scrolling and stop.
注意:下面的collection,快速滑动,离手后惯性继续滑动,丝滑停靠,非'常见的离手则停'。 Note: A quick slide of the collectionView below will cause it to continue to slide with inertial, slow down and eventually slide to a smooth stop after the hand leaves, not 'normally stop when it leaves the hand'. The same goes for the above collectionView.
Such a scene, the collectionView below nested with another collectionView & tableView.