Hi everyone,
Im working on a project but got a bit stuck with it.
Its a music mixer where im working on, the record should auto rotate 360 degrees after 3 seconds and continues rotating 360deg ( 720 deg total) and that continues infinitely adding more degrees ( or till its paused ).
but when the user drags the record, i want it to continue rotating again after the user lets go, on the degrees the user lets it go.
this is what i got now:
Draggable.create(ReactDOM.findDOMNode(this), {
type:"rotation",
throwProps:false,
onDrag: function() {
console.log(this.rotation)
}
});
TweenMax.to(ReactDOM.findDOMNode(this), 1, {rotation:110, repeat:-1})
the draggable rotation works that. but the tweenmax is not infinite yet.
http://codepen.io/rob-edgehero/pen/NRoJob