Forum Discussion
JoshuaThian
2 months agoCommunity Member
Change a text color using javascript GSAP
Hi, I'm looking to change a text color using javascript GSAP. I tried the following code: let gemba = document.querySelector("[data-acc-text='Gemba']"); gsap.to(gemba, {duration:2, fill:'#8d3...
- 2 months ago
Try this:
let gemba = document.querySelector("[data-acc-text='Gemba'] text"); gsap.to(gemba, {duration:2, fill:'#8d3dae'});
Nedim
2 months agoCommunity Member
Try this:
let gemba = document.querySelector("[data-acc-text='Gemba'] text");
gsap.to(gemba, {duration:2, fill:'#8d3dae'});