Jump to content
GreenSock

OSUblake

How to create a sortable list with Draggable

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 really sorry. 
I just called the draggable.js before the gsap.min.js and that fix it

Link to comment
Share on other sites

  • 2 months later...
On 9/4/2016 at 2:29 PM, Joelcox said:

Pretty cool stuff. 

 

I used this demo to created a few connected lists.

 

Check it out

 

 

 

 

This is awesome but i am wondering if we can do the same with Pixi.js Sprites? I have an app where i need similar functionality but with Pixi Sprites. I know that Draggable can be used with Pixi using proxy div element but if the list is big, i will end up using a lot of div elements which might not be a performant way of doing things specially on a mobile device. Thanks in advance.

 

Link to comment
Share on other sites

  • 2 weeks later...
  • 4 months later...

Hey Guys. Chiming in four years later. :) Is this post still active? 

 

In hopes of @OSUblake is still interested in this topic, what if each item is not the same height? The current calculations assumes that each item cell is a fixed height. :)

Link to comment
Share on other sites

Hey @Baconshot and welcome to the GreenSock forums.

 

It's probably best to create a new thread if you have follow up questions. If you'd like code help, please make a minimal demo of the situation that you're wanting help with as this post covers:

 

Link to comment
Share on other sites

  • 4 weeks later...

@ZachSaucier, thank you for your reply. :)

 

I would actually argue that this post is exactly where it should go, since @OSUblake already have the initial prototype here, and this is already indexed on search engines. 
 

But sure. If you insist on the similar prototype going into a separate post, I’ll make sure to create one. Just let me know what you decide on. :)

Link to comment
Share on other sites

Yeah, this won't work with arbitrary heights. You'd need to use a much more complicated algorithm for that.

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