I have a banner animation where I want the plane graphic to leave a dotted trail behind it as it flies. I am having difficulty getting the timing right. Specifically, the plane completes its movement before the dotted path is revealed. The dotted path actually doesn't animate. I am changing the strokeDashoffset of the white path, which reveals the yellow dotted path beneath.
So I'm wondering how to go about syncing the plane movement with the path reveal? I have tried negative offsets for the second "path" tween, but to no avail. Perhaps there is a better way to achieve this same effect without the need for the white path above the yellow dotted path?
I also have the issue where the plane first appears at the top left or "end" of the dotted path and instantly warps to the "start" of the dotted path, but it doesn't show up that well in CodePen.
Perhaps there are ways to optimize my css too?