Hello
I have just discovered TweenMax and it looks really good. I am trying to use it despite being a bit of a beginner with JavaScript and having some problems.
I'm trying to attach it to my button but I cannot get the Tween to work. It is probably something simple and I hope someone would kindly be able to point me in the right direction.
http://iwillbeawebdeveloper.co.uk/rfg/index.html#
<script>
function() {
givemefruit = document.getElementById("givemefruit");
givemefruit.onclick = function() {
TweenMax.staggerTo(".box", 1, {rotation:360, y:100}, 0.5);
};
}
</script>
Thanks
James