How do I animate along a horizontal curve using css or js?

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!