canvas-animation: Add grid snapping.