The blue square below should pause to the left outside the border, then jump to a left-aligned position inside the border and slide rightwards, stopping at the right edge.
Testing...