Text animation code issue resolved