Library containing common animations needed for transforming ViewPager scrolling for Android v13+.
Switch branches/tags
Clone or download
ToxicBakery Merge pull request #74 from Sammekl/android-4-fix
Fixed issue on Android 4 where position was outside of the -1f..1f boundaries
Latest commit 857dbde Apr 9, 2018

Build Status

Android Arsenal


Library containing common animations needed for transforming ViewPager scrolling on Android v13+. This library is a rewrite of the JazzyViewPager library and owes credit of the animation concepts directly to its source. The purpose of this rewrite is to provide an easier to use and extend implementation of ViewPager animations.


Getting Started (Gradle / Android Studio)

Add gradle dependency to your application.

compile 'com.ToxicBakery.viewpager.transforms:view-pager-transforms:1.2.32@aar'

After configuration, instantiate the transformer animation you wish to use and set it as the [page transformer](,

// Reference (or instantiate) a ViewPager instance and apply a transformer
pager = (ViewPager) findViewById(;
pager.setPageTransformer(true, new RotateUpTransformer());

Creating Custom Transforms

All ViewPagerTransform implementations extend ABaseTransformer providing useful hooks improving readability of animations and basic functionality important when switching between animations. ABaseTransformer provides three lifecycle hooks and two flags for default handling of hiding offscreen fragments and mimicking the default paging functionality of the ViewPager.


This project is built with Gradle using the Gradle Wrapper script.

./gradlew assembleDebug

gradlew.bat assembleDebug