Jump to content
Search Community

Apply effects of draggable to another.

Rick May test
Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

 

I'm using draggables to flip between pages on a site I'm building.   If you look at my Codepen, the grey container represents my full screen (non-scrolling) website page.  The orange area is what I want to drag and throw.  However, I do not want to require the user to have their mouse over the orange area to throw it.  They should be able to be anywhere on the screen.

 

You can currently do that until you drag/throw it the first time.  Then the grey/draggable container exposes an area that you can not grab to throw the orange.  Hopefully this makes sense.  I'm having a hard time articulating this.  

 

Ideally, I would like the grey area to never move, but accept the grab/drag/throw, then apply it to the orange container.  Is this possible?  I'm probably looking at this all wrong and it is something simple.  At least I hope that is the case.  :)

 

Thanks,

Rick

 

 

 

 

 

 

See the Pen EoGzbp by BlimBlamBloom (@BlimBlamBloom) on CodePen

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...