Refactored the code. Now, the text-animation code is separate in its own library directory from the example code.