Hello from Spain, I was delighted to discover GSAP and am looking for ways to integrate it into a project, I need to rotate an element in Edge and basing on the demo I built a small prototype, but not responding as I expect. I need that this limited degree rotation min to a maximum degree, for this I used bounds: {minRotation: -135, maxRotation: 135}, but the rotation is not stopped. Also I need to know what the current degree of rotation while the element is rotated. I'll be grateful if you can help me.
yepnope({nope:['js/jquery-ui-1.10.0.custom.min.js',
'js/Draggable.min.js',
'js/TweenMax.min.js'
],complete: init});
function init()
{var knob =sym.$('control');
Draggable.create(knob,
{type:"rotation",
edgeResistance:1,
bounds:{minRotation:-135, maxRotation:135},
onDrag:function() {
sym.$("Text").html("Current rotation in degrees = "+rotation());
}
});
}