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