Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...

marcojrzx

Members
  • Content Count

    2
  • Joined

  • Last visited

Community Reputation

0 Newbie

About marcojrzx

  • Rank
    Newbie
  1. Hi everyone this is my problem, i making a little practice and i want rotate a image but i don´t want use CSS only script var img; function init(){ ctx = document.getElementById("canvas").getContext("2d"); img = new Image(); img.src = "http://postimg.org/image/qj0abntbh/"; img.xpos = 50; img.ypos = 10; img.onload = function() { TweenLite.ticker.addEventListener("tick", loop); } function loop(){ ctx.clearRect(0, 0, 800, 600) ctx.drawImage(img, img.xpos, img.ypos); } TweenMax.to(img, 7, { rotatio
×