Share Posted July 16, 2022 Hello, Is it possible to "punch out" some areas inside the bounds of a Draggable area? I've read the docs and tried some approaches using the snap/liveSnap properties, but maybe I'm missing something here. The draggable and throwable boxes should "bounce off" the static ones when touching the green static ones. Looking for a nicer result instead of just a "gsap.to" when they're touching... See the Pen WNzRrNJ by jester6 (@jester6) on CodePen Link to comment Share on other sites More sharing options...
Share Posted July 16, 2022 No, that's a very complicated task. You'd have to set up a liveSnap function-based value that analyzes all those extra boundaries on every movement. Link to comment Share on other sites More sharing options...
Author Share Posted July 17, 2022 Thank you for your reply. I agree, it's a complicated task and, in my case, it's not worth the effort for the particular project I'm working on... also not mandatory. It's good to know for future projects so I can give the proper feedback 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