Layer transform auto orient

Orient an object along the path – after effects

Go to Layer > Transform > Auto-Orient, and choose Orient Along Path.

Press R to open the Rotation parameter, and scrub to rotate the animated layer to the proper angle on the path.

Layer transform auto orient