Jump to content
Search Community

midnightgamer

Members
  • Posts

    36
  • Joined

  • Last visited

Posts posted by midnightgamer

  1. 16 minutes ago, mvaneijgen said:

    I've given your second .box an extra class and set this as the trigger. Than as soon as the box hits the top of the scroller element it will move the header -100% in the y direction. You could set this animation to what ever you want, but this shows you what the logic would be.   

     

    Hope it helps and happy tweening! 

     

     

     

    Thanks for helping me out, I did not knew concept of scroller it helped 

  2. 9 minutes ago, mvaneijgen said:

    Hey, I'm not completely sure what you are trying to do. If you could clear that up with structuring your question as follows, it will really help giving you a better answer

     

    • A clear description of the expected result - "I am expecting the purple div to spin 360degrees"
    • A clear description of the issue -  "the purple div only spins 90deg"
    • A list of steps for someone else to recreate the issue - "Open the demo on mobile in IOS safari and scroll down to the grey container" 

     

    Also the best thing to do with ScrollTrigger is to remove it! This seems counter intuitive, but ScrollTrigger is just animating something on scroll, so just focus on the animation at first and only when you're happy with the animation add ScrollTrigger back in.

     

    If I read your question I think you want to change the scroller element, normally this is the viewport, but you can give it an element of your choosing

     

     

     

    hey can you check question once again? I tried to make it more clear 

  3. I am new to GSAP and animation. I am trying to make really simple animation where I want to rotate the SVG while it is rotating I want to be PINED and once it complete rotating I want to release the pin and move to new section. I applied everything but for some reason it is not getting pinned.

    See the Pen vYeMpdP by midnightgamer (@midnightgamer) on CodePen

  4. Hi, I am trying to add a sort of infinity scroll but before than I am stuck at the issue. In above pen i have 2 columns each have 16 images in it. I want to see all 16 images as i scroll down but it is not happening. I am pretty sure i using yPercetage is not the solution, but I don't know how to solve this.  And idea how I can convert this into infinity scroll as well?  

    See the Pen vYymZbX by midnightgamer (@midnightgamer) on CodePen

  5. 9 minutes ago, tailbreezy said:

    A few things.

     

    Moving your .para xPercent:100, moves it to the right by the value in offsetWidth which about 8000px.

    Instead you can position it with left: "100%" to be right after the right edge — making it start immediately upon entering the trigger.

     

    Additionally, if you want the animation to happen naturally you can to add that value (8000px) to the end marker of ScrollTrigger.

     

     

    Oh thanks

     

  6. 2 hours ago, mikel said:

    Hey @midnightgamer,

     

    I don't really understand your intention.
    As I said, a simple example would help.
    Here is a case where elements appear (instead of disappearing) in the scrolling process.

     

     

     

     

    Happy tweening ...

    Mikel

     

     

    44 minutes ago, ZachSaucier said:

    I'd guess that you should set up a ScrollTrigger for each section and then do what mikel is doing in that case. As he said, if you'd like a more help a minimal demo would be very helpful.

    See the Pen RwobvNX by midnightgamer (@midnightgamer) on CodePen

     

     

    In this codepen I used code given by @mikel and added some thing what i need is when we scroll down and green triangle reaches red circle it should undraw just like the line.

  7. 28 minutes ago, mikel said:

    Hey @midnightgamer,

     

    A reduced case would be more helpful.
    So here's a simple version.
    Note the structure of the path: from below!

     

     

     

     

    Happy tweening ...

    Mikel

     

    Thanks mike but this idea is not working from me as .draw not a single svg. It is array of svgs which i am trying to undraw as hand reach near the particular item. You can see animation when page load , I need revers the same animation but using scroll trigger. 

  8. 15 minutes ago, mikel said:

    Hey @midnightgamer,

     

    Please show us your attempts in the CodePen.
    Comment on your problems ...

     

    Every attempt brings you further

    Mikel

    First I tried your solution It was working fine for first section others were behaving strange then I added one class to each section set trigger to that class yet It didn't work. Then I tried to use forEach with ScrollTrigger.Create  but I was not clear with concept so I skipped it. Lastly I duplicated same code 4 times and trigger each section by thier ID yet it didn't work. I don't have code as undo all the changes.

  9. On 10/1/2020 at 5:54 PM, mikel said:

    Hey @midnightgamer,

     

    Just another approach ...

     

     

     

     

    Happy studying ...

    Mikel

    This is nice but I want text box in each section and each section should behave like current effect. I tried with your code and try to figure some way out but fail It would be great if you help me out here.

     Thanks

×
×
  • Create New...