i just converted the kotlin code (https://github.com/LPirro/ConstraintLayoutAnimations by https://github.com/LPirro) into java so people like me who don't know kotlin can understand this. All credit goes to @LPirro for creating this amazing tutorial for us. please read this before using the code for better understanding https://android.jlelse.eu/build-awesome-animations-with-7-lines-of-code-using-constraintlayout-854e8fd3ad93