Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
christie-g

Trigger area moves all draggable items

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 can set up a trigger area and get it to work, but if there are more than one draggable elements on a page then moving one item using the trigger area move both items together,

 

things i have tried that have not worked

 

trigger area as class (div header)

only having one  div having a trigger property

setting two unique ids for trigger areas 

loading the div separately

 

 

any ideas of what else I could try??? 

 

 

Share this post


Link to post
Share on other sites

Hello christie-g, and Welcome to the GreenSock forum!

Do you have an example of what you have tried so we can see your code example in context?

Here is a video tut on how to create a codepen example.



This way we can test your code live on codepen to better help you!

Thanks! :)
  • Like 2

Share this post


Link to post
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

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. 


  • Recently Browsing   0 members

    No registered users viewing this page.

×