Jump to content
Search Community

Aereli

Members
  • Posts

    10
  • Joined

  • Last visited

Posts posted by Aereli

  1. Thanks for the fast reply,

    After watching the video it explained exactly the error that is happening to me.
    I have added the `.saveStyles()` method but still have the same error. 
    is it possible that I have the wrong syntax? I have tried: 

    here is my updated https://codesandbox.io/s/strange-firefly-5mtce?file=/src/App.js

    ScrollTrigger.saveStyles("maskImageRef.current, contentRef.current")
    and 
    ScrollTrigger.saveStyles([maskImageRef.current, contentRef.current])
     
     
  2. Hello,
    I have made replica of my code to show the issue that I am having.

    https://codesandbox.io/s/strange-firefly-5mtce?file=/src/App.js
    Do not mind the mask not being in the center for that is not the problem.. 
    When resizing the window from desktop TO mobile, the `<a>TESTING</a>` does not appear. 

    when i inspect it with the dev tools it shows `opacity: 0;` 
    I am trying to disable all scrollTriggers and timelines when mobile.
    Any help would be gladly appreciated. THANKS

    See the Pen App.js by s (@s) on CodePen

  3. Hello Gsappers,
    How could I transition the mask to be smoother from  text, to content-box. 

    It is also not transitioning back to original form.

    I’m not sure if this is the best method in doing this so I am open to other ways. 
    This code was transferred from a React.js project onto the codepen link provided.  

    See the Pen mdPJZxy by Aereli (@Aereli) on CodePen

×
×
  • Create New...