k, i solved this by using :
let square = document.getElementById("square")
//do animation
this.Timeline.to(square, 1, { height: 0, y: 15/*half of the y of your svg viewbox*/ })
this.Timeline.to(square, 1, { height: 30/*maxheight of your svg viewbox*/, y: 0 })