timelinName.restart() in GSAP Posted February 24, 2015 Hi All, I am using TimelineLite to play a punch of animation. I have a timeline and wanted to call a function oncomplete something eg. timelineName = new TimelineLite(); timelineName.pause(); timelineName.to($('#someID"), 1, {display: 'block', onComplete: start() }); function start() { timelineName.restart(); } Its cause the error "Uncaught TypeError: Cannot read property 'restart' of undefined" Do I miss something? Thanks,
timelinName.restart()
in GSAP
Posted
Hi All,
I am using TimelineLite to play a punch of animation.
I have a timeline and wanted to call a function oncomplete something
eg. timelineName = new TimelineLite();
timelineName.pause();
timelineName.to($('#someID"), 1, {display: 'block', onComplete: start() });
function start() {
timelineName.restart();
}
Its cause the error "Uncaught TypeError: Cannot read property 'restart' of undefined"
Do I miss something?
Thanks,