spinPagerEffect

fun Modifier.spinPagerEffect(state: PagerState, index: Int, maxRotationDeg: Float = MaxRotationDegrees): Modifier

Applies a "spin" (rotate) effect when scrolling through pages.

The highest angle possible is determined by maxRotationDeg, achieved when the item is fully swiped away.