I am trying to create a minimap for a little game.
First i started creating a full map in SVG, and then animated the player icon alongside the path.
But is it possible to reverse the behaviour, so that the player icon stays, and the path itself, is animating, moving and rotating anchored to the player icon?
Just like the image below.
Any help is highly appreciated.
current code:
motionPath = MorphSVGPlugin.pathDataToBezier('#motion-path', {align:'#player-dot'});
TweenLite.set('#player-dot', {xPercent:-50, yPercent:-50});
tl.to('#player-dot', 2, {
bezier:{values:motionPath, type:'cubic'},
ease: Power0.easeNone
});