Jump to content
Search Community

Todd Shelton

Business
  • Posts

    2
  • Joined

  • Last visited

Posts posted by Todd Shelton

  1. This is so simple that I have to be missing something easy. 

     

    I'm setting the paragraph element to an opacity of 0; 

    Then I'm splitting the text into words. 

    I'm then just trying to stagger the words to an opacity of 1. I can't get this to work. I can make it staggerTo opacity of 0 but not the other way around. Here is my Codepen. 

    TweenMax.set("p", {opacity: 0});
    
    var text = new SplitText("p", {type: "words"}),
        words = text.words;
    
    var tl = new TimelineLite({delay: 1});
    tl.staggerTo(words, 1, {opacity: 1}, 0.1);
    

    See the Pen YZQPwd by trshelto (@trshelto) on CodePen

×
×
  • Create New...