See the Pen ⮎END⇄START⮌ - an infinite loop in CSS by Fitz (@MackFitz) on CodePen.