Jump to content
Search Community

Sujan

Business
  • Posts

    13
  • Joined

  • Last visited

Posts posted by Sujan

  1. Hi @mvaneijgen , the GlobalTimeline will change shapes and size based on each section position and placement of section object. It works perfectly on refresh , but as we resize the browser the timeline doesn't update the size and width based on new resize position.

    I have updated my code with the function based value and removed many pieces from it. I have enabled the section wise object which can be anywhere on the sections and based on that position the global shapes animation occurs. 

    Let me know if this information helps to debug the resize issue of scroll position object.

     

  2. The code is working without resize, i have calculated the clientBound of position and animate it according to section circle positions, but when we resize the screen the position is not recalculated as desired thus breaking the position on scrollTrigger.

    I need help for this code to work while we resize as well. 
     

    Hoping to find the solution soon.

    See the Pen ExMqqoq?editors=1010 by synsuman (@synsuman) on CodePen

  3. On 8/18/2023 at 8:51 PM, Cassie said:

    Not quite sure I understand what the issue is with your solution, but you could use flip?
     

     


    This thread is also good

     

     

     

     

    Also if you slow down the video you can see that there's an extra card which makes it easier, and similar to the thread I linked.

     

     

     

    Hi @Cassie can we add next previous and autoplay loop through this flip state demo? Current demo is only going one direction. If we can do that with flip that would be ideal use case. 
    Thankyou

  4. I was trying to implement gsap with react and while researching stumbled upon @gsap/react library. but while using it to install from "pnpm" i couldn't install the library.
    Also while checking on npm js , https://www.npmjs.com/package/@gsap/react the package github is not available and says @gsap/react is not in the npm registry, or you have no permission to fetch it. 

    Tutorial i was following is here, https://stackblitz.com/edit/react-edsxap?file=src%2FApp.js,src%2Findex.js,package.json.

    could someone help me out here?

×
×
  • Create New...