Simple library that allow us to set up a view pager using animation
val fragmentList =
listOf(ScreenOneSlidePageFragment(), ScreenTwoSlidePageFragment())
val pagerAdapter = ScreenSlidePagerAdapter(supportFragmentManager, fragmentList)
slider_view.adapter = pagerAdapter
slider_view.applyTransformation(SLIDER_DEPTH_TRANSFORMATION)
Just clone the project and create a new module with the library.