It seems like a filter could be created, to make this effect. But I don't understand the technical aspects of filters, so I can't say for sure.
With Interpolate extension, you can interpolate style, but you can't adjust the subpaths.
Tried the extension first but the trajectory path couldn't be adjusted so used the lpe.
Then, converted object to path, broke path apart, group objects together, reversed the z-order inside group and used the interpolate attribute in group.