Forum Discussion
MathNotermans-9
4 years agoCommunity Member
Change color on a SVG with GSAP in Storyline ( part 2 )
To create a dynamic advanced progress meter you need to be able to change color and settings of default Storyline shapes / SVGs. Here i am showing how to get that done. A function in Javascript...
ArtTiculate-f7c
4 years agoCommunity Member
I like what you did with this line of code, Math:
svgElement1 = document.querySelector("[data-acc-text='"+actual_accName+"'] > div > svg > g > path");
Wherever did you get the syntax for that?
- ArtTiculate-f7c4 years agoCommunity Member
BTW. I love that path!
svgElement1 = document.querySelector("[data-acc-text='"+actual_accName+"'] > div > svg > g > path");- MathNotermans-94 years agoCommunity Member
Yeah, using this kind of syntax a lot. As its a great way to select specific elements in Storyline. Template_literals are nice too. Didnot know them. Great way of making code in Storyline better readable.
Related Content
- 2 years ago
- 11 days ago