Hi, I've almost got it working, and hoping for just a little more guidance. I have updated the CodePen demo, and have taken the onclick out of the html and put it into the js file. What I've added is the following:
var buttonOne = $('#one');
var clicked = false;
buttonOne.click(function() {
if (clicked) {
tl1.tweenTo('first', {
onComplete: function() {
this.timeScale(1);
}
}).timeScale('7');
}
clicked = !clicked;
});
And it's almost working. The only thing is that it works on DOUBLE click, rather than a single click. If someone can steer me in the right direction, it'd be much appreciated.
Thanks!