Invalid property type set to rotational Missing plugin? gsap.registerPlugin()
tl.to(waveAC, {morphSVG:waveA, type:"rotational", origin:"20% 0%", delay:0},"<")
I got super excited with your solution, but it was short lived as it didn't work, I commented out the function using it and left may solution, however I think I just have to stick to initial fill as it my solution takes away the beauty of morphSVG
unfortunately, only the commented out version works as intended, and that's because onComplete() runs regardless of animation being completed, and onComplete runs as intended, so that's unfortunate!!!!! I can't pass any parameters, unless someone on the forum has any suggestions.
function addGradient(gradient){
let gradientFill = gradient;
let morphDot = document.getElementById("morphD1")
morphDot.style.fill = gradientFill;
}
// function addGradient(){
// let gradientFill = "url(#linear-gradientGreen)";
// let morphDot = document.getElementById("morphD1")
// morphDot.style.fill = gradientFill;
// }
Hi GSAP Helper, well it would be nice to do something like this:
.to(morphDot, {morphSVG:dotPath, fill:var(--myGradient)}, "+=1")
or alt
.to(morphDot, {morphSVG:dotPath, linear-gradient(to bottom right, red, yellow)}, "+=1")
Sorry to bother, is there a way to use css in morphSVG aside from fill? for example a gradient linear-gradient(to bottom right, red, yellow)? Or alternatively to revert back to the svg with an @url? Thank you to any one in advance!
It all worked, thank you very much everyone. Tutorial videos should have those points though of including that in script, would have saved me much time but still appreciated