Jump to content


  • Posts

  • Joined

  • Last visited

Everything posted by smallio

  1. Hey @Sukru, I've just worked on a few projects with extensive side-scroll stuff, happy to send you some examples if you want.
  2. All good solved with this + normal overflow/fixed stuff Sorry to bother. gsap.set(".body", {className:"-=block-scroll"}); gsap.set(".body", {className:"+=allow-scroll"});
  3. Seems normal overflow + fixed trick does not work on the body, scroll container or content? Could someone kindly point me to the right way to go about this?
  4. Ahh never-mind i was overcomplicating it, I guess it's easier to just to make a new foreach and just do Y or X, all solved sorry to ping.
  5. Hey Jack! @GreenSock Been playing around with this tons, so many cool results. Is there a way to use the data attr method you used to choose between doing parallax X or Y? I get how you'd normally do it, but with data attributes it makes it so much easier to add to elements. Is there a way to go like X1.5 or Y1.5 to control both axis and speed? If so please could you show me a really simple example on the old cat demo we were looking at? https://codepen.io/GreenSock/pen/MWVVvWz
  6. No worries, I'll just separate out into 5 separate triggers! I was wondering why it was so hard... lol. Thank you for letting me know.
  7. I've been stumped for a while here trying to pin each of these 5 grey sections when they reach the left hand side of the page (inside a bigger pin), then operate a separate timeline to effect each green box differently while each section is pinned. Does that make sense? Hopefully so I've isolated the demo down as much as possible. This is actually a spin off that parallax thing you did the other day Jack @GreenSock, so perhaps you'd be able to see what I'm doing wrong quicker than someone else? Currently "sec" is pinned which holds the whole segment in place on the bigger page I've isolated this from. I've tried referring to "this" section in view but then it ignores the sidescroll and does some weird diagonal stuff. Thank's in advance if anyone can help!
  8. In fact, while I'm here I may as well pick your brain! - Some other libraries when you invert values it changes direction. Is there anyway to do direction with this? So say two lines go up and one goes down? Would be super useful to have a "direction" attr or something similar for when you want to quickly achieve this along with the parallax effect. smoother.effects(".hc1", {speed: 0.5, lag: 0.5, direction: -1}); smoother.effects(".hc2", {speed: 0.5, lag: 0.5, direction: 1}); smoother.effects(".hc3", {speed: 0.5, lag: 0.5, direction: -1});
  9. Very much so, thank you so much. I love the data attr approach - do you plan to add more in SS? That's one of the main features I loved about locomotive, having the ability to be able to quickly add side-scrolling / diagonal elements at different speeds via like 2-3 attrs. Would love to see it and use the crap out of it if you do end up adding it haha. Regardless great demo. Cheers! @GreenSock
  10. Just looking to add delay / speed to this to make the images parallax while horizontally scrolling. It works fine vertically but I assume I need to pass in window width or something to get it working horizontally? Can't figure it out for some reason. I'm currently working in a much larger project which I can't isolate easily so hopefully this example demonstrates the idea. Thank you in advance for any replies! EDIT - Would be an awesome feature to just pass in direction: X or something to do this quickly.
  11. Thanks guys! @PointC I thought @OSUblake would have something, I just couldn't find it.
  12. Hi all, I'm wondering if someone can point me to an example of gsap draggable to connect boxes from points (basically a flow chart). I'm referencing these examples but trying to do it in GSAP. Are there any basic examples on the forum people know of to learn from? The examples below are a bit over my head and I'm looking for something super basic as I'm just starting to learn canvas. Cheers! https://codepen.io/Ni55aN/pen/xzgQYq https://codepen.io/huytd/pen/aREgLG
  13. Very cool mate congrats! I shall do.
  14. Haha cheers Craig, working a lot mate! Setup a few businesses (which I 100% could not have done without learning GSAP - Big love to the team), and now back to really dive deep now I have a bit more time and things are running smoothly Hope you're well mate, how is everything your end?
  15. Awesome, just watched your little video on it. Great work, I've been waiting for GSAP to natively make a smooth scroll library. Have not been on the forums in a few years and super happy to see you guys have finally done it! Going to give this a run now. Also great demonstration, super clear.
  16. I'll try the smooth scroller as well
  17. @Cassie Thanks for the reply! Awesome, I'll try scaling those down. Does GSAP natively kill RAF loops which are not in view? EG are all the scrollers updating and requesting info all the time or are they just doing it upon triggers?
  18. Hi all, I just wondered the best practices when using Scrolltrigger and any smooth scroll library? I appreciate you guys want isolated code examples but due to the nature of this problem being sitewide I can't really do that. I'd really appreciate a bit of insight on how to make scrolling interactions less laggy in general. All I'm really doing is using a bunch of scroll triggers, nothing complicated and under 250 lines of code so really it should not be lagging. I don't need someone to fully audit the code or anything, rather I'd appreciate if someone could just have a quick look in the inspector and see if there's anything standing out that's causing my issues. I've come up with a few things that could be causing the problem. - Image size - RAF triggering too much - Not using dynamic scroll triggers with "for each" etc Here's my site i'm using scrolltrigger x asscroll - https://scrollablegsapdemo.webflow.io/
  19. Ah lord, that was the one I edited & left for later, whoops! Swapped the vars back now lol. Good shout on the normalize though, going to give that a try. Cheers!
  20. Personally I'd convert everything to beizer data using morph SVG & then do something like this. Rinse & repeat for as many "orbits" as you need. pathDataToBezier can convert all of them together in one go as well. Hope it helps
  21. Hi all, Trying to recreate a timeline slider @jesper.landberg made for some constructor practice. Nearly finished, however I can't seem to get the z-index/xPercent right for the back animation. I'm wondering if anyone knows how to keep the transition the same when we go back & keep the slide underneath like when we go forward? Really need to get better with slide logic, for sure my weakest point. Cheers!
  22. let can of worms = opened ?
  23. Superb Jack thank you so much I shall be renewing my membership once I get paid this month. This forum is honestly the best in the world.