Jump to content
Search Community

Araf Hossain

Members
  • Posts

    37
  • Joined

  • Last visited

Posts posted by Araf Hossain

  1. I don't know why "ScrollToPlugin" is not working, Everything is working fine. When I click on any Side navigation "a" , it's not working.

    Here is my live site link: http://araf.dynamicflowdev.com/

    Before you gave me this solution I have tried this. 

    See the Pen mdVROOX by arafnoob (@arafnoob) on CodePen

     

    But I have tried yours. As your code everything is working fine. But when I click on any link. It doesn't move. 

  2. 1 hour ago, ZachSaucier said:

    Hey Sonya and welcome to the GreenSock forums.

     

    You should use your developer tools console (F12) to check for errors. Opening it up for your pen I see "Uncaught TypeError: ALL_FUNCTIONS.sectionOne is not a function". I'm guessing those are additional animations that you took out for the sake of the demo (thanks for doing that).

     

    FYI we recommend using the GSAP 3 way of formatting. For more about that check the GSAP 3 migration guide.

     

    The main issue is that you're using an older version of ScrollTrigger that has a bug related to zero duration timelines with ScrollTriggers. Update the file to version 3.3.3 and it will animate some. 

     

    But you'll still need to change your code a bit because you need a way to animate back to the previous section on reverse. I might do it by calling your method with the previous item - something like this: tl.call(ALL_FUNCTIONS.styleTheNav, [prevmenuitem]); - before you call the item that shows for that section. That way when you reverse it it'd call the previous one second. If you have overwrite: "auto" on those tweens, it should animate the way you want. I'd also recommend a toggleActions of toggleActions: "play none none reverse".

     

    I noticed that you tried to use the position parameter on non-timeline tweens. That won't work because the tweens have nothing to position them in regards to.

     

    Happy tweening.

    Hey,

     

    Would you please tell me how to do the same thing when scroll and I setup the GSAP3. But I could not do this thing. I want as she wants. I solved the previous problem now I am facing with this problem.

    My codepen url:

    See the Pen Yzwpevj by arafnoob (@arafnoob) on CodePen

     

     

    I have tried this links:

     

     

  3. 55 minutes ago, ZachSaucier said:

    Hey Araf and welcome to the GreenSock forums.

     

    If I'm understanding you correctly, it looks like you just need to change the position of your sections so that they start half way down the viewport. Can you please make a minimal CodePen demo if you're wanting our help implementing this effect? You shouldn't include all of your content of the page, just some big rectangles would work.

     

    Hi,

    I know how to do this. But I am using WordPress elementor where tons of css for singular design. 
    i have done this with the demo. But When I am trying to implement in WordPress, lots of problems shown. For this reason I have shown this like this. 

  4. Hello everyone I need a simple solution. This is my website http://araf.dynamicflowdev.com. I want to the parallax run with the sidebar scroller. 

     

    Now what's happening now: 

    When I scroll down full section goes up. But I don't want this.

     

    What I want: 

    I want when user scroll, every section will go up as scroll. Not the full section. I don't want to scroll full section. I want something like this site https://nagama.digital/

    On that website, scrolling is too smooth and works perfect. I want something like that. 

     

    I want the smooth scroll.

    Here is my js code: 

    gsap.to(".custom_panel:not(:last-child)", {
      backgroundPosition: `20% ${+innerWidth / 60}px`,
      yPercent: -100,
      ease: "slow",
      stagger: .5,
      scrollTrigger: {
        // markers: true,
        trigger: "#content",
        start: "top top",
        end: "+=300%",
        scrub: 8,
        pin: true
      }
    });
    gsap.set(".custom_panel", {zIndex: (i, target, targets) => targets.length - i});

     

    Here is my css code:

    #content {
      width: 100vw;
      height: 100vh;
      position: relative;
      top: 0;
      left: 0;
      overflow: hidden;
    }
    .custom_panel {
      position: absolute !important;
      will-change: transform;
      min-height: 100vh;
    }

    Here is my view: 

    http://araf.dynamicflowdev.com

    See the Pen Yzwpevj by arafnoob (@arafnoob) on CodePen

×
×
  • Create New...