Add a bounce, shake, or flash animation to a button or image in an Android app with one line of code.
Animate a UI element sliding in from the edge of the screen when a new screen loads.
Apply a Hinge effect to make an element appear to fall off the screen when dismissed.
Set a Pulse animation on a notification badge to draw the user's attention to it.
Also requires the Android Easing Functions dependency for animation curves.
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.
← daimajia on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.