Jump to content
Search Community

JayShukla

Members
  • Posts

    14
  • Joined

  • Last visited

Posts posted by JayShukla

  1. Hello,

    I take this example from the scrolltrigger demo. I'm doing somthing deffrent with the example. 

    I'm trying to manage a scrolltrigger here and the animation should only work backwards or when I scrollup.

    The header should be at the top without following the screen when we scroll down.

     

    I console " self.direction " -1 will come when I go scrollUp. But don't know how to implement that only for backwards.

    onUpdate: (self) => {
        self.direction === -1 ? showAnim.play() : showAnim.reverse()
    }

     

    See the Pen BarQdJq by henrymanektech (@henrymanektech) on CodePen

  2. On 10/21/2020 at 8:09 PM, mikeage said:

    Hey @iamrufus were you able to solve this? I'm looking to achieve this effect also but am having trouble centering the image on each link item.

    I have the same situation in my project then I do a little more google about this and find similar posts related to this. No doubt THREE.JS is a good idea but I don't believe in copy-pasting this YouTube solution. It takes time to learn something new. 

    Hi @mikeage You can find the solution form here. I hope it helps. - 

     

    • Like 2
  3. Hello, Hope you guys doing well.

    I make layered pinning example but a little different what I have here is content, images, and footer in between these I add up layered pin example with 

    navigation links compatibility.

    The reason for making this topic is navigation links compatibility when I click the number on "ascending order" the panels work fine everything switch(slides) one by one but if I click "descending order" the panels do not work as expected Like 5, 4, 3, 2, 1.

     

    For Example, if I'm on panel five then I click 1 number, then it's dragging me to panel ID 2 not on panel ID one.

     

    image.thumb.png.f8f10f4eba97ac19dc33ee80e3c9cc94.png

    See the Pen rNWOqPm by elsueno (@elsueno) on CodePen

  4. 48 minutes ago, akapowl said:

    "You will have to kill off the old ScrollTriggers in a barba hook when transitioning to another page, and create all neccessary ScrollTriggers for the next page from scratch after transitioning. You will find examples on how to do that and some more explanation on the why in the threads below."

    Thanks @akapowl It's works fine now.

    I don't understand 2and step. So I just try 1st step and then directly 3rd step before as you mention. Now I got it How and why I need to kill and re-initiate animation after barba trigger.  

  5. Thank you @akapowl for your time.

    I tried this but did not succeed. Some of the threads are suggesting to refresh ScrollTrigger like ScrollTrigger.refresh(true); with Barba.js function and some are suggested to add gsap into function and pass it to Barba. but I have gsap on the footer and Barba in the middle content both are not connected each other I'm still looking for a solution. 

  6. Here is the link - https://cdpn.io/elsueno/project/editor/XmqJWg

    Here I'm working on the footer parallax effect from this example - 

    If I apply Barba.js and click navigation "Home", "about" & "Product" then the footer gsap parallax effect as per the link not working properly because Barba not reloading the page and content for the inner page is less compare to the home page. Barba hooks are not handy in this situation because the footer is not included in the Barba container. Can you guys help me? 

     

    image.thumb.png.ba27ef4de33a0b3d491b8cf9c783160b.png

  7. I have 4 circles which I need to distribute in 4 directions. If I allow position absolute, it's all mixed-up together but I need every circle side by side in the center of the page.

    The problem is Gsap is a distribute circle with the transform or with the position but when if I enable position absolute then the circle is mixed up.

    Is there any other way I can achieve this? 

    idea-1.jpg

    idea-2.jpg

    See the Pen wvzjbgE by elsueno (@elsueno) on CodePen

×
×
  • Create New...