See the Pen multiaxis-move-example-4 by soritesparadox (@soritesparadox) on CodePen.