The blue square below should move rightwards, sliding at constant speed the first half and then making an abrupt jump to the end.

Testing...