Forum Discussion
SandeepGadam
4 years agoCommunity Member
Formatting text within variable values.
Hi everybody,
I'm working on a project where I need to show the content with variables dependent on user selections from a variety of icons. Do we have a solution to display superscript and subsc...
MathNotermans-9
4 years agoCommunity Member
As Dynamic texts loose formatting you have to set the variables, show them in Storyline and then format it. And a extra issue is that Storyline converts all text to SVG...
As i just now tried to get this working...its tough. As all text is converted to spans of SVG ( still text, but hard to select a word or other part of a string and act on it )...so you would need to create pure HTML text of it...
These lines of script.... get all text-segments on a given slide ( or just a specific one offcourse ) and then change the fill of the svg-text segment.
var textSegments = document.getElementsByClassName("text-segment"); gsap.to(textSegments, 1, { fill: "red" });
Its a start.
Related Content
- 12 months ago
- 12 months ago