Hello - I've been working on getting attr: to work with my React app, but to no avail. I am simply trying to translate the location of an object. Using to and manually setting the x and y values works. This might have something to do with the virtual DOM, but not entirely sure. Has anyone else run into this or was successful in making this work?
Code for clarity, in componentDidMount():
setTimeout(() => {
var tl = new TimelineMax()
const right_arm = findDOMNode(this.refs.right_arm)
tl.to(right_arm, 2, { attr:{d:"M 286,61 485,61"}}, 1)
}, 2000)
Thanks in advance!