Hello...
I have this simple record where I get SVG id's and manipulate with them:
$(window).load(function() {
var HSCPsvg = document.getElementById("hscp");
var svgDoc = HSCPsvg.contentDocument;
var JinJang = svgDoc.getElementById("JinJang");
JinJang.onclick = function (){
TweenLite.to(JinJang, 6, { rotation:360, transformOrigin:"center", ease: Power0.easeNone, repeat:10, });
};
});
TweenLite works correctly, but for one click only. This method I usually use with jQuery and it works for each click.
How to change it please, so that the rotation will be executed for each mouse click on the selected element?
Thanx