Jump to content
Search Community

MadG

Business
  • Posts

    46
  • Joined

  • Last visited

Posts posted by MadG

  1. Totally understand, I knew it was a long shot, I just can't get the problem to replicate in a codepen. I did just pick this up from another dev and am still kind of orienting myself, so I may make some more discoveries on what's happening. 

     

    I'll ensure all your suggestions above are properly implemented, and if I find out anything else that may point us in the right direction I'll post back here with either further details or an answer that can help folks in the future. 

     

    Thanks for your help! GSAP is a joy to work with, as always.

  2. Wanted to add one more piece of detail to this - starting on the homepage, navigating to another page, then navigating BACK to the homepage without a hard refresh also does fine. It only appears to be an issue if you start with a fresh browser reload on another page and then navigate back to home. 

  3. Hey all, 

     

    Unfortunately, I've tried to recreate this issue in Codepen, and it's just not working, so I'm linking the development environment for the site as well as a super-simplified version of our JS file for the site. The issue I'm running into is with ScrollSmoother interacting with barba.js. For anyone unfamiliar, Barba is an AJAX-based page transition library that loads new pages without a browser refresh in vanilla HTML/JS sites. You should be able to see the problem behavior in the dev environment - if you load the homepage fresh, ScrollSmoother inits and works fine. However, if you navigate to the History Page and then transition to the homepage via Barba by clicking the logo "Mining Exchange Hotel", the scroll on the page is super laggy, and running a performance profile, it appears to be related to a reflow issue originating in ScrollSmoother. Should I be trying to manage these two libraries together in a different way? You can see in the js file that currently, we're killing the smoother before the page transitions and re-initializing it before the new page enters, but the same behavior persists even if I comment those out and maintain the same smoother instance throughout all the page transitions. Thanks in advance for any help. 

  4. Hey all! See attached pen. The idea is when you click a card, it removes that card, then fetches a new batch of data and adds a card with that new data. Everything seems to be working as intended except that the new incoming card isn't getting included in the FLIP animation. It makes sense why, as it's not even in the DOM yet when I'm running Flip.getState(), but I can't think of a way to get around that. Is what I'm asking for here even possible or do I need to think of another approach? Thanks!

    See the Pen eYMmKdN by kslaton (@kslaton) on CodePen

  5. Hey all. See above pen. I'm running a relatively simple FLIP animation, but when I assign a hover class to each box, the FLIP still animates correctly, but there's a flash of the boxes moving around afterward. If you comment out the &--canHover bracket set in the SCSS, it works as predicted. Any ideas why this might be happening and how I can work around it? Thanks!

    See the Pen LYQrpdL by kslaton (@kslaton) on CodePen

  6. Hey all. This problem isn't something I can really recreate in a Codepen, it's more of a general "why is this behavior happening and what can I do about it" question. I built this page using ScrollTrigger according to the official Codepen on horizontal scrolling sections. It's working totally fine and smoothly for me in Chrome and Firefox, but in Safari it's insanely jumpy. It scrolls halfway down the page vertically then snaps back into its correct place. Has anyone else been experiencing these issues with Safari, and is there anything I can tune in the ScrollTrigger settings to try and smooth it out a bit? 

  7. Hey all, 

     

    Got kind of a weird one for you today. I'm working on a site with a bunch of offset borders that need to be drawn in from bottom left on scrollTrigger. I want these borders to be 2px regardless of screeen size or SVG scale, so I'm using the vector-effect: non-scaling-stroke property. However, as you can see in the pen, that's causing a funky effect where drawSVG is segmenting the line into 100px segments and drawing them. Anyone know of a different way I can accomplish what I'm trying to do here? Thanks!

    See the Pen MWONqVm by kslaton (@kslaton) on CodePen

  8. @GreenSock thanks, totally understand and this is all super helpful. I do have one question about Flip returning a timeline. So currently in my code I have 

     

    Flip.from(... {
      onComplete: () => {
        gsap.set(... {
          onComplete: () => {
            Flip.from(...)
          }
        })
      }
    })

    I understand what you're saying about being able to chain the .set onto the Flip.from, but if I've already captured the second FlipState earlier in my code, can I just chain the second .from after the .set?

  9. Hey all! Below is a sample of a rather complex animation I'm doing using FLIP on one of my sites. It performs totally fine here, but it's rather complex and in the context of the site with other active scrollTriggers and such going on, it's catching a bit in the middle, when the cards shuffle out from the bottom and sides. Any suggestions on how to make this more performant and just clean up the timeline in general? I get a little stuck with FLIP sometimes since it appears it can't be chained into a timeline like a normal tween. 

    See the Pen dyZMVjy by kslaton (@kslaton) on CodePen

  10. Not sure whether I'm actually going to do this but just curious how y'all would handle it. In the above pen I'm basically moving through 4 quadrants of a square on scroll, and that all works fine. Trying to figure out how I could make it infinite, but it seems like setting body to scroll position 0 doesn't work, unless I'm typing something wrong. Any thoughts? 

    See the Pen eYeOxZJ by kslaton (@kslaton) on CodePen

×
×
  • Create New...