@akapowl Thanks a lot. That solved the issue.
I really appreciate the time & effort you spend to fix my code. I'm not much familiar with plain javascript so it was a little difficult to understand how to calculate the exact value. Though I have only 1 week of experience with GreenSock library, I learned a lot. This is an awesome forum. Special thanks for cleaning up my code. ?
Once again, thanks a lot. I am grateful for your help. It means a lot to me. Thank you.
Regards,
Sree