Jump to content
Search Community

Narendra Verma

Members
  • Posts

    130
  • Joined

  • Last visited

Posts posted by Narendra Verma

  1. Hello,

    I am learning scrolltrigger, I am trying to animate the heading and paragraph but it's not animating, sometimes when reload the page then it's already showing the  inline css.

     

    This is the basic example I am trying to learn. I check this video  https://greensock.com/docs/v3/Plugins/ScrollTrigger .

     

     

    Would you help me out how to animate the heading and paragraph without affecting on other section?

     

    See the Pen WNGKrVd by Narendra_verma (@Narendra_verma) on CodePen

  2. Hello,

     

    I have a simple code and I have to use stragger. I have to display the each box one by one. I don't know where is the issue with my code. I checked the videos and refer this link https://greensock.com/docs/v3/Staggers  .

    Inline css is displaying even I set the delay also to check.

     

    Would you help me out where is the issue?

    See the Pen rNMKrRY by Narendra_verma (@Narendra_verma) on CodePen

  3. Hello,

    I am using below code pen.

     

    There is no issue in the desktop, Even desktop mobile responsive is also working. Now I checked in my iPhone 6s Safari browser and when I swipe up the first time then it's continue scrolling till the 4th slide and wait for 1-2 sec and going up till 3rd half.

     

    It's not working in mobile device as  in the desktop. Can you please check it once in mobile device?

     

     

    See the Pen NWxNEwY by GreenSock (@GreenSock) on CodePen

  4. On 9/19/2019 at 5:34 PM, mikel said:

    Hey @hybreeder,

     

    Sorry - I forgot to mention that 

    http://cdnjs.cloudflare.com/ajax/libs/jquery.touchswipe/1.6.4/jquery.touchSwipe.js

    is required.

     

     

     

     

    Have a nice day ...

    Mikel

    @mikel 

    I am getting one issue after one year. It was working perfectly on mobile but don't know why it's not working now.

    My issue is in mobile, I am not getting the last 2 slide image full-screen on my mobile.

     Can you help me out with this?

     

     

     

     

     

  5. @ZachSaucier, Thanks for the help, I can understand that here are lot's of thread and you have to reply on each. I am really appreciate help and support.


    About my issue,

    I am already using the toArray which i added in the codepen  while asking the question. I also added the reference codepen. @mikel suggested me for horizontal slider but that is only one. So definitely i will ask how to add second one?

    It's will be more helpful  if someone help me what is the issue with my code.

     

  6. @mikel, How can I add another horizontal slider? I change the fromRight id to class.

     

    I have only one section and inside one section i have min five horizontal slide.

     

    <section>
      <h1>Section 01</h1>
    </section>
    
    <section id="sec02">
      <h1>Section 02</h1>
    
      <div class="fromRight">
        <h1>from Right one</h1>
      </div>
     
      <div class="fromRight">
        <h1>from Right two</h1>
      </div>
     
    </section>
    
    
    <section>
      <h1>End</h1>
    </section>
    
    
    <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.5.1/gsap.min.js"></script>
    <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.5.1/ScrollTrigger.min.js"></script>
    
    <script type="text/javascript">
        
    gsap.set('.fromRight', {xPercent:100})
    
    var action = gsap.timeline({
      scrollTrigger: {
        trigger: "#sec02",
        pin:true,
        scrub:0.3,
        start: "top top",
        end: "+=1500"
      }
    })
    .to('.fromRight', {xPercent:0, duration:2})
    .to({},{duration:0.5}) // an empty tween to generate a pause at the end
    </script>

     

  7. @akapowl, Yes, Thanks for the information.

    I added the parent class of the section. I don't know it's correct or not but it's working for me.

     

    For Second section

    t1.from(".blueBox_gsap .heading h2", { duration: 1, opacity: 0})
        .from(".blueBox_gsap .heading p", {duration: 1,opacity: 0});

    For Third section

    t2.from(".redBox_gsap .heading h2", { duration: 1, opacity: 0})
        .from(".redBox_gsap .heading p", {duration: 1,opacity: 0});

     

  8. Hello,

     

    I am using Wordpress and sharing my code in codepen.

    I am trying to scroll horizontal but I am getting some issues. Like when I reach the  second section and scroll then my end section going up and then my horizontal scroll working.

     

    I need, Like when I second section is on view port then scroll horizontal scroll from right to left.

     

     

    I checked below example. But in below example. I don't want to scroll the first  "Horizontal snapping sections (simple)" and once scroll needed.

    See the Pen YzygYvM by GreenSock (@GreenSock) on CodePen

     

     

     

    See the Pen qBZgejP by Narendra_verma (@Narendra_verma) on CodePen

  9. @ZachSaucier, I don't know why it's not working for me. I watch the ScrollTrigger video more than 5 times but still, I am not able to understand what is the issue with my code. H2 and p tags animation not working as expected.

    If h2 and p tag animation is working for the second section then I am getting issue on third section.

     

    See the Pen YzqBbVo by Narendra_verma (@Narendra_verma) on CodePen

×
×
  • Create New...