gitmyhub

AndroidViewAnimations

Java ★ 12k updated 4y ago

Cute view animation collection.

AndroidViewAnimations is a Java library that lets you add over 60 ready-made visual effects to any element in an Android app with a single line of code using the YoYo API.

JavaAndroidGradleMavensetup: easycomplexity 2/5

This is a Java library for Android that makes it easy to add visual animations to any element on the screen. Rather than writing animation code from scratch each time, a developer adds this library to a project and picks from a menu of ready-made effects.

The API is called YoYo. You call it by naming the animation technique you want, setting a duration in milliseconds, optionally setting a repeat count, and telling it which screen element to animate. The README shows the pattern in a single short line of code. That simplicity is the main appeal.

The collection covers over sixty named effects organized by category. Attention effects include Flash, Pulse, Shake, Wobble, Bounce, and Tada. Fade effects cover fading in or out from any direction. Slide effects move elements in and out from the sides, top, or bottom of the screen. Zoom, Rotate, and Flip effects round out the set. There are also a handful of special effects such as Hinge (an element appearing to fall off the screen), RollIn, Landing, and DropOut.

Installation is done through a single Gradle or Maven dependency line. The library also depends on a companion project (Android Easing Functions) that handles the curve of how animations accelerate and decelerate, making movements feel more natural.

The README was written by a student in China in 2013. A 2019 update notes they went on to work in investment, a detail left in the README as personal history.

Where it fits