Forum Discussion
Storyline360, Animation and GSAP ( Greensock )
SplitText only works for normal DOM text, not for SVG text <tspan> (which is used by storyline for text)
https://greensock.com/forums/topic/12165-splittext-with-svg-text-element-problems/
(Posted August 6, 2015 - I do not believe that anything has changed)
Jurgen would it work with the accessible text which is not meant to be SVG based
Sent from my iPhone
- Jürgen_Schoene_2 years agoCommunity Member
probably accessible text could work - but I have not tested it
the test would only be worth it if articulate solved the problem with the annoying scroller in accessible text mode
- PhilMayor2 years agoSuper Hero
@Jurgen I have an unrelated question, I want to copy code from a textbox into clipboard on the users machine.
My workaround at the moment is to pull the code from a text variable and then copy into the clipboard and that works, is there any way to use the contents of a textbox in storyline or am I chasing the impossible?
What I have works just wanted to make it an elegant solution.
- MathNotermans-92 years agoCommunity Member
This gets all text in a given Storyline document.
const collection = document.getElementsByClassName("vector-text-item");
And then with gsap.getProperty you can get anything you want.... thus also the text.let someText = gsap.getProperty(collection[0], "textContent");
console.log("someText : "+someText );
Ofcourse you can target any single textfield by using a more specific selector.