iotron Posted November 5, 2022 Share Posted November 5, 2022 Hi, I want to make the active image/div snap to the centre of the slider. Kindly point me to the right direction. See the Pen poKEgzZ by iotronlab (@iotronlab) on CodePen Link to comment Share on other sites More sharing options...
GSAP Helper Posted November 5, 2022 Share Posted November 5, 2022 Sure, that's entirely possible but it's way outside the scope of help we can provide in these free forums. We love helping with GSAP-related questions, though. Of course anyone else is welcome to post an answer if they'd like - we just want to manage expectations. I'm surprised to see you using jQuery for the drag functionality rather than GSAP's Draggable - I think you'll find that Draggable offers a lot more features and functionality including snapping although the way you've got this set up may not map very well to the built-in 2D snapping functionality. With enough custom code, it's all very doable, though. It's just not trivial. You are welcome to post in the "Jobs & Freelance" forum for paid consulting, or contact us directly. 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