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