I am working on a project which uses leaflet. My goal is to move my custom icon marker along the path and i have achieve it using Leaflet.MovingMarker library. But the problem i am facing is that I dont know how to rotate the marker along the path. Please help me.

I want the head of the airplane to point towards the path it travels.
Note: I am doing my project in vanila JS. I am using the same example from Leaflet.MovingMarker with the custom marker.