How to control minimize animation of windows based on gesture progress?

Pardon me if this is a duplicate.

The windows are resized and moved when 3 finger gesture is performed to enter overview mode from normal mode. I want to control the size and placement of windows in a similar fashion using other gestures, based on the progress of the gesture. This work is towards the GNOME shell extension called Gesture Improvements (GitHub Repo).

I want to implement 3 finger slide down gesture and minimize all the windows based on the progress of the gesture. The gesture part of the code is already in place thanks to @harshadgavali. I just need some pointers and code reference to get started with the work.

Thanks a ton.