Scale by location?

Hello! I am trying to build something that scales according to it’s location. Picture items coming towards you on an angle on a conveyor belt.

I know it can be done… this website kind of does it…

any ideas/pointers/anything?

any help would be greatly appreciated!