I'm quite a newbie with annyang. I'm trying to add a Greensock Timeline in a annyang command, but it is not working. I am wondering if it is not possible or if I'm doing something wrong.
This is the code were it is about:
var tlcrocodile = new TimelineLite({paused:true});
if (annyang) {
var commands = {
'hello': function() {
tlcrocodile.to(".crocodile_1", 0.3 , {x:+40} , 0);
}
};
annyang.addCommands(commands);
annyang.start();
}
Hopefully someone can help me. Thanks in advance!
Ilse