I'm trying to use a modifier on motionPath, but it appears that's one of the attributes that can't be modified. Can anybody confirm?
I'm trying to move a bunch of svg elements back and forth in a radial path, so I thought I could use math to calculate the angle and set a custom path for each element. Is there another way of doing this?
motionPath: {
path: [{ x: 12, y: 0}, {x: 0, y: 0}],
},
modifiers: {
motionPath: function(value, target) {
const [targetX, targetY] = target.dataset.svgOrigin.split(' ')
let degree = getAngle(CLICKED_ON_X, CLICKED_ON_Y, targetX, targetY)
path: [{ x: NEWX, y: NEWY}, {x: 0, y: 0}]
}
}