Currently I was implementing TweenMax to use wavify in wordpress, but Uncaught TypeError: Cannot read property 'getBoundingClientRect' of null. An error is output and the cause is unknown.
From this image, you can see that TweenMax and wavify have been loaded, but
in HTML
<svg width="100%" height="100%" version="1.1" xmlns="http://www.w3.org/2000/svg"><defs></defs><path id="myID" d=""/></svg>
in javascript
// For Vanilla JavaScript
var myWave = wavify( document.querySelector('#myId'), {
height: 60,
bones: 3,
amplitude: 40,
color: 'rgba(150, 97, 255, .8)',
speed: .25
})
I have entered the code above. The TweenMax code is working, but wavify is not running. The error "Uncaught TypeError: Cannot read property 'getBoundingClientRect' of null" Is output. Is there any possible cause?
Thank you very much.