Pavel Laptev Posted June 27, 2020 Share Posted June 27, 2020 Hi, guys! I'm wondering if there is a way to move an element without the need to hover the cursor on the draggable element? Thank you! See the Pen ExPvXga by PavelLaptev (@PavelLaptev) on CodePen Link to comment Share on other sites More sharing options...
ZachSaucier Posted June 27, 2020 Share Posted June 27, 2020 Hey Powel and welcome to the GreenSock forums! With Draggable it's as simple as setting a trigger to the element that you want to control the drag and setting the cursor to "auto": See the Pen bGErMjd?editors=0010 by GreenSock (@GreenSock) on CodePen You could even give it some momentum by using GSAP's InertiaPlugin if you'd like See the Pen abdyGjq?editors=0010 by GreenSock (@GreenSock) on CodePen Happy tweening. 1 Link to comment Share on other sites More sharing options...
Pavel Laptev Posted June 27, 2020 Author Share Posted June 27, 2020 Wow, that's so cool. Thank you @ZachSaucier 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