Jump to content
Search Community

Draggable with forbidden areas

Alex Jester test
Moderator Tag

Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...