Ivan Mocs Posted February 18 Share Posted February 18 how to drag content with a size larger than the container, if the size of the content is small it is fine, but if the size is large it cannot be dragged. See the Pen rNRRwBb by Tutor-Indonesia (@Tutor-Indonesia) on CodePen Link to comment Share on other sites More sharing options...
mvaneijgen Posted February 18 Share Posted February 18 It looks like you're rolling your own draggable instance, I would highly recommend taking a look at the Draggable plugins https://gsap.com/docs/v3/Plugins/Draggable/ which is really robust and has a lot of features build in. 1 Link to comment Share on other sites More sharing options...
Solution Rodrigo Posted February 19 Solution Share Posted February 19 Hi, Indeed Draggable would be the way to do this, here are a couple of simple demos: See the Pen rNRRbNx by GreenSock (@GreenSock) on CodePen See the Pen mdoogdL by GreenSock (@GreenSock) on CodePen Hopefully this helps. Happy Tweening! 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now