Jump to content
Search Community

benoit

Members
  • Posts

    135
  • Joined

  • Last visited

Posts posted by benoit

  1. Hi,

     

    This is more a question about SVG, Illustrator and Chrome but I think there is a SVG expert in this room.

    There is few options to embed font in SVG with Ai (check my codepen), SVG is now with a lot of <glyph> tags but it's not render in Chrome (just in quickview on mac).

    So, how to embed font to use with GSAP and get best animation ;  vectorize a big paragraph ? or just put in @font-face style is ok ? what's your workflow ?

     

     

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

  2. I was just going to write the same thing!

    TimelineMax.prototype.show = function(e,start,stop){
      //alert(this.duration());
      this.to(e,0,{autoAlpha:1},start);
      this.to(e,0,{autoAlpha:0},stop);
    };
    

    It's better with you code and return this !

    Thank you OSUblake

    • Like 1
  3. I made a long SVG animation, the duration is near 90s. I would like to have less code.

    tl.set('svg *', { autoAlpha: 0 }); // start
    tl.to('#el' ,0, { autoAlpha: 1 } ,"intro"); // show #el
    tl.to('#el' ,0, { autoAlpha: 0 } ,"intro+=1"); // hide #el
    
    tl.to('#el' ,0, { autoAlpha: 1 } ,"part1"); // show #el
    tl.to('#el' ,0, { autoAlpha: 0 } ,"part1+=1"); // hide #el

    If I can write 2 lines in 1.

    tl.set('svg *', { autoAlpha: 0 }); // start
    tl.showBetween('#el' ,"intro" ,"intro+=1");  // show for 1s #el
  4. Hi,

     

    What is the best way to synchronize an GSAP animation and a sound music ?
    I make some experiment with

    setInterval(function () {
        console.log(audio.currentTime); // will get you a lot more updates.
    }, 1000/50);
    

    But what's next ?

    var tl = new TimelineLite();
    /*
    …
    */
    tl.progress(audio.currentTime/audio.duration);    
    
    

    An option like useframes:true looks great but I am not sure to do it right.
    If some one could give me some GSAP base to make a good start.

×
×
  • Create New...