Jump to content

Search In
  • More options...
Find results that contain...
Find results in...

Thomas Günther

  • Posts

  • Joined

  • Last visited

Everything posted by Thomas Günther

  1. @OSUblake So clever yet so simple. Thanks a lot, this works just fine!
  2. Hey @OSUblake No, I could not fix the issue yet. Just open the CodePen with the bottom anchor link and scroll up: https://cdpn.io/medienbaecker/debug/BawyeQz#bottom
  3. Hey @OSUblake Thanks a lot for your solution. This indeed works much better for the CodePen. Unfortunately I made the demo a bit too minimal as it seems. On the actual website I have color changer "lines". That's why start and end were both set to top center and I used a reversed timeline. Sorry, should have included that in the initial post/demo. I forked the demo and created a new one closer to the actual structure: https://codepen.io/medienbaecker/pen/BawyeQz Thanks again, Thomas
  4. I'm currently building a page with sections that change the body background color when they are scrolled into view. Doing this with ScrollTrigger was very easy but I stumbled upon an issue when scrolling up without scrolling down first. This might sound weird but it can happen when you open the page with an anchor tag or reload the page anywhere but on the very top. The color animation is all messed up then. Since this is hard to explain I created a simplified CodePen with a #bottom anchor and a video of the issue. To test it yourself you need to open the CodePen in debug mode. I guess it has something to do with the reversed to tweens that don't have a correct initial state. Any idea how to solve this? Thanks in advance! https://codepen.io/medienbaecker/pen/wvrBYmd
  5. @GreenSock Thanks a lot for the quick fix!
  6. @nico fonseca Thanks, that's interesting! I also compared the pens but didn't try the fixed width/height. It looks like it's a bug indeed.
  7. I'm not sure if there was a fix. Curiously there's this pen that doesn't have the issue: https://codepen.io/GreenSock/pen/mdPvzxJ
  8. I'm trying to set up a button that moves to a fixed positioning (top right) when scrolling. Easy enough with FLIP and ScrollTrigger, I just have an issue with how the animation looks when moving from relative to fixed positioning. It looks like it immediately moves to the top (fixed positioning?) and animates to the top right from there. It looks fine the other way around. I already tried adding the position property to props, both in getState() and Flip.from() — didn't help. I also noticed the same issue on this official pen when the viewport can be scrolled and the button is not at the very top: https://codepen.io/GreenSock/pen/rNMBXxb A few weeks (or months?) ago there was a thread about this with a similar call to action button but I can't find it via the search or Google. Thanks for any help!
  9. Not as fast as the superhero @akapowl but I created a scroll-controlled accordion for you too: https://codepen.io/medienbaecker/pen/YzVmvzY
  10. I was able to reproduce the issue, but only with one Mouse (Razer DeathAdder V2 Mini). Here's a video I recorded: https://cln.sh/B9T9sL Using Chrome or the Magic Trackpad in Safari, I could scroll over the horizontal scroll area with no issue. I think this is a Safari bug.
  11. Thank you so much, @akapowl ❤️ My actual code is a lot more complex so I didn't even think of setting the initial CSS values via gsap.set(). Now I put the logic into JS and it works just fine. Thanks again!
  12. Hi there, I stumbled upon an issue with percentage based transforms and ScrollTrigger. I created a minimal demo with .good_boxes using pixel values and .bad_boxes using percentage values. Only the bad boxes are displayed incorrectly after resizing the window. First things that came to mind were using xPercent/yPercent and invalidateOnRefresh: false but neither had an effect. To reproduce the issue, please visit the following codepen, resize your window and then scroll down: https://codepen.io/medienbaecker/pen/JjWxzxd Thanks in advance for any help 🙌
  13. Awesome! Thanks a lot for the quick help everyone!
  14. Ah, yes. That could be it. Thanks for the link. Do you know when the files will be updated? It‘s weird because on CodePen I can already use 3.6.1.
  15. Hi! Where can I download version 3.6.1 of the DrawSVGPlugin? I can only find version 3.6.0 in my account dashboard. I realized there must be an important bug fix in this version because in 3.6.0 I can not get the simplest ScrollTrigger + DrawSVG scenarios to work. After recreating it in a pen it works without problems. See the attached CodePen URL https://codepen.io/medienbaecker/pen/oNYpmdj On 3.6.0 I get all kinds of errors I don't understand: Thank you!
  16. I think you will first need to get the value of your CSS variables via getPropertyValue: https://codepen.io/medienbaecker/pen/wvozjqK
  17. Thanks a lot for your help, Jack. That does indeed work very well. Great idea! I'm always concerned about performance but it's still super smooth somehow. Working with GSAP for this project has been so much fun. I'm looking forward to showing this to my client.
  18. Thank you. I'm actually glad this isn't super easy so I won't feel as bad about the many hours I tinkered with this. When I found out I can save the old state of the parent element and then use Flip.fit() on it I thought I had it figured out. This doesn't help unfortunately. Sorry about that, will do.
  19. Thanks for your answer and the warm welcome, Zach. I set absolute to true before, but then I had issues with the scroll position and the elements underneath. I will update the simplified codepen with those elements. EDIT: I just edited the codepen with a footer. While the project elements are animating, the footer will jump to the top—because the elements are position: absolute and the parent element has no height I guess: https://codepen.io/medienbaecker/pen/wvoWLeO
  20. Hi there, I'm currently trying to use the new FLIP plugin to add an animation to my filter script. I tried to do something similar like this how-to demo: https://codepen.io/GreenSock/pen/NWRxarv …but with two filters that can be combined. I just can't get the animation to work properly. Most of the time the to-be-hidden elements don't get any animation. I feel like I'm 90% there but something's missing. I tried modifying the `onLeave` function but it doesn't change anything. Thanks in advance for any help, Thomas