Jump to content
Search Community

bluestar

Members
  • Posts

    6
  • Joined

  • Last visited

Posts posted by bluestar

  1. On 1/5/2022 at 5:50 AM, OSUblake said:

    Hi amine,

     

    That helper function is using the ModifiersPlugin under the hood, but the concept will still be the same for PixiJS or any other JavaScript object.  

     

    You can literally drop in your Pixi objects to this pen and it should work fine.

     

     

     

     

    The only adjustment you is that you don't need to worry about units because PixiJS doesn't have any.

     

    gsap.to(arrayOfSprites, {
      duration: 5,
      ease: "none",
      x: "+=500", //move each box 500px to right
      modifiers: {
        x: x => x % 500
      },
      repeat: -1
    });

     

    This works great. But how to stop this animation at a given index?

  2. 8 hours ago, ZachSaucier said:

    That's a wholly different subject. Check out this thread:

     

    This demo is different than what I am asking. I need to stop the wrap-around slider at a particular side, in the wheel demo, there is no ModifiersPlugin usage.

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

     

×
×
  • Create New...