An open API service indexing awesome lists of open source software.

https://github.com/alexstyl/radiustransition

Transition between a circle to a square. ⚪️→ ⬜️
https://github.com/alexstyl/radiustransition

android animation delight transition

Last synced: 10 months ago
JSON representation

Transition between a circle to a square. ⚪️→ ⬜️

Awesome Lists containing this project

README

          

# RadiusTransition

A showcase of how to [transition](https://developer.android.com/training/transitions/custom-transitions.html) between a circlular image to a square one across activities. The image in this example is fetched via [Glide](https://github.com/bumptech/glide).

# Preview

![Transition from circle to square](https://github.com/alexstyl/RadiusTransition/blob/main/art/transition_to_square.gif?raw=true)

# The Transition
In reality, all you need to know in terms of transition is inside the [RadiusTransition](https://github.com/alexstyl/RadiusTransition/blob/main/app/src/main/java/com/alexstyl/radiustransition/transition/RadiusTransition.kt) class. This repo shows you how to use it and how to combine it with multiple transitions such as the ChangeShape and ArcMotion for a nicer effect.