Panels animation with transform contraint and offset

I’m trying to do with transform contraint, but changing the value for each objecft by hand doesn’t look like the easiest option, is there a easy way to do this with drivers or animation nodes?
The first time I ever used drivers was here for animating the ball own rotation based on it’s location, so that’s as experienced as I am with them, so animation nodes would be the go-to option for me.