Jump to content
Search Community

David Rhoden

Members
  • Posts

    4
  • Joined

  • Last visited

Posts posted by David Rhoden

  1. Thanks, that's exactly what I'm looking for (what I'm feeding into the tween, specifically what scrollTo target value is expected) but my code doesn't have asections array like the above example, so I'll have to figure out something else.


    I just have gsap.to(window, {duration: 1, scrollTo:"article class" + (index + 1)}); and then in the HTML a series of articles with incremented classes, like "article class1, article class2", etc. My classes are there in the HTML. Maybe I wrote that scrollTo value in a non-working way.


    I'll see what I can do about a demo.

     

     

×
×
  • Create New...