Thank you very much, with Scrolltrigger and this solution I can do what I need. However I have use my scroll trigger animation and everything works fine but when I drag the container and then I scroll, the Scrolltrigger animation jumps, and restart the animation of the circle. How can i get a continuos rotating animation? I mean, the scroll animation would start at the same rotation point that the draggable has left the circle without jumps. Is it possible? Do I need a timeline to achieve this?
This is my scrolltrigger code:
gsap.to(".container", {
rotation: 30,
duration: 8,
scrollTrigger: {
trigger: ".wrapper",
start: "-50% center",
end: "bottom center",
scrub: true,
markers: true
}
});