Jump to content
Search Community

agsymonds

Premium
  • Posts

    14
  • Joined

  • Last visited

Posts posted by agsymonds

  1. Hi. I have created a pen using ScrollTrigger & SplitText to increase opacity on text as you scroll down the page. The pen works fine on CodePen but on my live site the chars revels runs automatically with a stagger and is not connected to scrollTrigger. I get no errors on the live site,  so assume it must be my code.

     

    Is the GSAP code correct or is there something obviously wrong with what I am doing?

     

    Thanks for any help.

     

    I have combined JS on my site and it has caused this issue. The code seems to work, but any improvement is appreciated.

    See the Pen eYPKgwG by agsymonds (@agsymonds) on CodePen

  2. I fully expect that this is me doing something wrong so apologies in advance.  I have opacity change on text which is triggered through ScrollTrigger. Each word have been split using SplitText, but it the effect is a little fast when using scrub, so added ScrollSmoother, but the speed doesn't change.

     

     

     

    See the Pen eYPKgwG by agsymonds (@agsymonds) on CodePen

  3. Hi, if I add more than one <p> element to each section, only the first <p> element is affected by the .from and not both <p>, although both have the same class.

     

     

    I could wrap all <p> elements in a div and target that div, but I assume that there is a simpler way to target each individual <p> element?

  4. Hi,

     

    I have repeating section using the same classes, but with different content (backgrounds and copy). I want the background to appear on scroll, and then for the text to also appear, maybe +1 seconds after the background appears. 

     

    I have managed to use "gsap.utils.toArray('.section');" for the sections which are triggered on scroll and they work well. If I want do the same for text within each section, do I need to repeat the array process adding a different trigger to target the text class to trigger for each instance or is there a simpler way?

     

    TIA

    See the Pen BaqrVgg by agsymonds (@agsymonds) on CodePen

  5. Just started using GSAP so please excuse the naive question.  Looking at using SplitText, like in the attached Codepen, but wanted to see how it could be altered so that when the letters appear, the order is random,  rather than linear from beginning of the quote to the end?

     

    Thanks.

    See the Pen JjYwVGm by robbiecren07 (@robbiecren07) on CodePen

×
×
  • Create New...