The blue square below should pause to the left outside the border, then jump inside the border and slide right and then left again, stopping at the left edge.
Testing...