I have a simple zoom in animation on a logo and I'm trying to add GSDevTools. Without the GSDevTools everything works fine. As soon as I add it, I get this error: TypeError: Cannot read property 'createElementNS' of undefined
Here is my code:
componentDidMount() {
console.log("HomePage componentDidMount");
const tl = gsap.timeline({
id: 'timeLine',
repeat: -1,
yoyo: false
});
tl.set('.logo', {
id: 'logo',
scale: 0
});
tl.to('.logo', {
id: 'scaleUp',
duration: 2.5,
scale: 1.0
});
GSDevTools.create();
}
Please Help, tell me how to make this work in a React App.
I'm not adding a codeine because this is a React based app, code pen doesn't do react.
Thanks,
John