The blue square below should pause while left-aligned inside the black border, then slide rightwards until right-aligned, then jump to the left outside the border.
Testing...