Jump to content
Search Community

SaifUllah

Members
  • Posts

    27
  • Joined

  • Last visited

Posts posted by SaifUllah

  1. Hello everyone,


    I'm trying to move the globe/earth Image under the hand of the Lion (you can see the image below), but it is not getting responsive, I've used the MatchMedia as well but still having issues, is there any way or technique which I can use to make it perfectly responsive and move to that specific position?


    I would greatly appreciate your help.

     

    image.png.33bf65062a51379e865c79022f75d60b.png

    See the Pen LYMNqYj by saifullahbutt85 (@saifullahbutt85) on CodePen

  2. @mvaneijgen Thank you for your response and suggestions.

     

    I apologize for not providing any code examples in the initial post, I've attached the old pen by mistake. Anyways, I've found the solution in the old thread shared by @akapowl.

     

    Also, I appreciate your recommendation to use CodePen and create forks to iterate and experiment with different ideas. It sounds like a valuable approach to refining and improving the animation implementation.

     

    Thank you guys for your insight and sharing your personal workflow. I will implement these suggestions and continue exploring different approaches to achieve the desired animation effect.

  3. I am currently facing an issue with the GSAP Observer in a horizontal scroll scenario, where it seems to be extending beyond the intended boundaries and causing additional vertical space.

    Specifically, when using the GSAP Observer in a horizontal scroll setup, I notice that it does not terminate properly, resulting in unwanted vertical spacing. It should end on last Green Section same like normal scrolling behavior.

     

    I would greatly appreciate any insights or suggestions from the community regarding this issue. Are there any known workarounds or best practices that could help resolve this issue?

     

    Any assistance or guidance would be highly appreciated as I strive to find a solution to this problem. Thank you in advance for your time and support.

     

    See the Pen GRYwboZ by saifullahbutt85 (@saifullahbutt85) on CodePen

  4. Hi guys, is it possible to convert that red colored div (background) into the cursor follower like the white one (wherever my cursor is)? white is just an example to show how red div (background) should look after converting from background to custom cursor.

    See the Pen NWLJvbG by saifullahbutt85 (@saifullahbutt85) on CodePen

  5. Hi Guys, I'm trying to create sections navigation on Horizontal Scroll, but my offsetLeft isn't calculating fine. could please have a look and let me know the issue, seems like this issue is because of ScrollTrigger end value/option but I really need this option and same value to make my Animations slower and smoother. What could be the possible solution to get 100% accurate offsetLeft without removing the ScrollTrigger end value?

     

    Thanks.

    See the Pen zYLQeLZ by saifullahbutt85 (@saifullahbutt85) on CodePen

  6. Hi @Rodrigo. Thank You, I've followed this concept and applied the Scroll Smoother on the site below, but still it is not really smooth as the demo Above, could you please check and let me know that what could be the issue? Scroll Smoother is working fine but Animations are moving too fast while Scrolling with Mouse Wheel.

     

    When I use mouse wheel faster, something happens like this.

     

  7. @Rodrigo Thank You, but this is kinda same as before, I think I didn't explain well, I want Multiple  & Different Animation in every single Section. Please have a look into the HTML below.

     

    As you can see, Section 2,3 and 4 child's has different classes and I want to animate each section child differently according to its class.

    <div class="container">
    
      <section class="panel red">
        Section 1
      </section>
    
      <section class="panel orange" data-pin="true">
        <h1 class="title-fade-in-left">Section 2</h1>
        <p class="text-fade-out-left">Lorem ipsum dolor sit amet consectetur adipisicing elit.</p>
        <div class="box-rotate"></div>
      </section>
    
      <section class="panel purple" data-pin="true">
        <h1 class="title-fade-in-right">Section 3</h1>
        <p class="text-fade-out-right">Lorem ipsum dolor sit amet consectetur adipisicing elit.</p>
        <div class="box-zoom-in"></div>
      </section>
    
      <section class="panel green" data-pin="true">
        <h1 class="title-fade-in-top">Section 4</h1>
        <p class="text-fade-out-top">Lorem ipsum dolor sit amet consectetur adipisicing elit.</p>
        <div class="box-bounce"></div>
      </section>
    
      <section class="panel gray">
        Section 5
      </section>
    
    </div>

     

  8. @Rodrigo Thank you for your answer, I still have a confusion. Could you please clear, what if have multiple and different classes in every single Section? How can we Animate/Manage multiple classes of each Section in loop?

     

    For Example: in Section Purple, what if I have something like below?

    <section class="panel purple" data-pin="true">
        <h2 class="title-fade-in">Section Purple</h2>
        <div class="box-shape"></div>
        <p class="fade-out-text">Lorem ipsum dolor sit amet consectetur adipisicing elit.</p>
        <img src="demo.png">
    </section>
×
×
  • Create New...