Jump to content
Search Community

AGW

Premium
  • Posts

    4
  • Joined

  • Last visited

Posts posted by AGW

  1. Thanks @ZachSaucier

     

    I appreciate the help! The article you brought up is actually why I mentioned React Refs. While her example isn't built with Frontity in mind, I'm hoping I can figure out the translation points by going back and forth between all these learning sections. Not as easy for a beginner, but I'm trying here. I only asked after going through all of your and their documents - I'm not the type to expect others to do my work for me lol.

     

    What makes this sticky is what I mentioned above: Targeting children DOM elements from within a component seems to be a requirement to figure this out.

     

    Oh, and it's Fronti-TY not -FY. It's a React framework and port of WordPress. Fairly new, but serves the purposes my clients need without limiting the experience.

     

  2. Hey guys, I'm very new here (& not all that great with programming) - long time lurker, big admirer of GSAP and happy be in the club! I'm hoping somebody here can help me figure out what I'm doing wrong. 

     

    I'm basically attempting to convert this simple CodePen into Frontity/React (embed at bottom of post). 

     

     

    Here's the link to my CodeSandbox

    https://codesandbox.io/s/xenodochial-saha-mfj42?file=/packages/mars-theme/src/components/test-scroll.js

     

    The errors I get seem to come from my scroll-test.js file. No matter what I do, I can't seem to get any ScrollTrigger action (or even basic 'to' motion).  There have been some phantom moments once I've changed some code to target a different element, the page instantly begins to animate - but after I refresh, I'm given fatal errors instead. Not really sure what that is...

     

    If I attempt to target certain elements, it won't run.

    image.png.9a488b8b0d8f23259f97c7dd59b8de0f.png

     

    If I target a previously declared component, it at least runs - but it claims scrollTrigger is an invalid property

    image.png.008eed5796d18d1e479506df5e85f14b.png

     

    I'm left to believe that GSAP isn't properly firing. Any ideas for troubleshooting this problem?

    Happy to supply any additional information requested. I tried to follow the rules and created my problem on codesandbox, since it was the only service that had Frontity available.

     

    Cheers,

    AGW

     

     

     

    See the Pen QWGwQYv by agw421 (@agw421) on CodePen

×
×
  • Create New...