Jump to content
GreenSock

kovle

How to make a code the drag item disappear after 10 onDragEnd?

Go to solution Solved by GreenSock,

Recommended Posts

I want to make the drag item disappear( like .hide() ) after 10 times of onDragEnd
But I cant get a clue. pls help me 😅

See the Pen KKRQEmY by kovle (@kovle) on CodePen

Link to comment
Share on other sites

  • kovle changed the title to How to make a code the drag item disappear after 10 onDragEnd?
  • Solution

I'm not sure why you're loading a SUPER old version of the files (in addition to a more recent version) and you had invalid markup and a few other odd things in there, but maybe this is what you meant?: 

See the Pen bGKbLEm?editors=0010 by GreenSock (@GreenSock) on CodePen

 

We don't typically provide "build-to-order" solutions, but this was pretty straightforward so I just whipped it together for you. I hope it helps. 

  • Like 1
Link to comment
Share on other sites

47 minutes ago, GreenSock said:

I'm not sure why you're loading a SUPER old version of the files (in addition to a more recent version) and you had invalid markup and a few other odd things in there, but maybe this is what you meant?: 

 

 

 

We don't typically provide "build-to-order" solutions, but this was pretty straightforward so I just whipped it together for you. I hope it helps. 

Thanks for answer ! I think I misunderstood draggable and JS

  • Like 1
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.
×