Jump to content
Search Community

benoit

Members
  • Posts

    135
  • Joined

  • Last visited

Posts posted by benoit

  1. Hi,

    Close, but don't find how to get the length of a motionPath.

     

    const rawPath = MotionPathPlugin.arrayToRawPath([{x:0,y:10},{x:50,y:1000}], {curviness:2});
    const d = MotionPathPlugin.rawPathToString(rawPath);
    console.log(DrawSVGPlugin.getLength(d)); // hum

     

  2. Hi,

     

    No cross-origin problem (screenshot).
     

    for(let i = 0;i<50;i++){
      let man = new PIXI.Sprite(texture[1]); // bubble
      man.anchor.set(0.5, 0.5);
      sprites.addChild(man);
    }
    // problem
    for(let i = 0;i<50;i++){
      let sman = new PIXI.Sprite(texture[0]); // gsap man #fail
      sman.anchor.set(0.5, 0.5);
      sprites.addChild(sman);
    }


    See the Pen ZEQLGzg by benoitwimart (@benoitwimart) on CodePen

    Capture d’écran 2020-06-18 à 18.31.03.png

  3. Hi,

    I know GSAP and SVG, GSAP and HTML, but now I would like to explore GSAP and Pixi.
    PixijS examples are more about the power of Pixi than the power of GSAP like timeline (works great), stagger (yes!), draggable (not testing yet).
    Any ressources ?

     

  4. Just playing with math, design, shapes and an input range.
    I make many css transforms and I use wrap (yoyo).

     

    gsap.utils.wrapYoyo(0, 0 /* the value from my range between 0 and 100 */, x )

    Return a NaN not sound like give me a wrap number between x and y.

     

    gsap.utils.random(0,0) // 0 ;¬)

    Just to make sense  :)

  5. Hi,

    I use a Yoyo wrap on a slide and may be if it's 0, return a 0 could be great :)
    But I am OK, if this is a good idea to return a NaN :)

     

    gsap.utils.wrapYoyo(0, 0, x )
×
×
  • Create New...