The blue square below should slide from left to right, then snap back to a left-aligned position and slide rightwards again.

Testing...