Statistics Grid


Truck animation

The php file pulls in the templates for both the road and the truck. Inside each template, I gave the svg a custom class. And I gave each g tag a custom id.

Outside of the g tag, there is a path that the designer made specifically for the truck to follow. I gave that path a custom id of road-path. Then I used scroll trigger to find that id and get the truck to follow it.