• Content count

  • Joined

  • Last visited

Community Reputation

5 Newbie

About hanslibuzli

  • Rank

Recent Profile Visitors

572 profile views
  1. Double scroll

    Thanks @Jonathan for the detailed followup! Sometimes all you need is the right direction to be able to google Thanks for taking the time!
  2. Double scroll

    Hi @Jonathan I'm looking for a way to optimize the scroll performance with GSAP and I've been wondering why the browser scroll gets triggered before the GSAP ticker or if there is a better way to get the most out of the scroll?
  3. Double scroll

    Hi everyone I stumbled over a parallel scrolling issue and was hoping maybe someone would have some input I created a simplified version of my issue in the CodePen attached. I have two main containers with overflow: scroll one of them is fixed and overlays the other. When I scroll the overlaying container the background container should also scroll the same amount. Since the overlaying container blocks the background containers scroll I update the scroll position with JS. Unfortunately it seems the browser scroll is triggered before the eventListener which results in a jaggy experience. Even GSAP's rAF ticker is not fast enough.. Any ideas?
  4. Scaling parent and child element

    Hi @Jonathan Thanks for your tip! In the end will-change: transform did the tick for me
  5. Scaling parent and child element

    Hi @OSUblake Thanks for the tip with the ticker! The mouse cursor runs really smooth now Ive been wondering why you would remove the ticker event again? Wouldn't it be best to just let the remove the mousemove event and tap into the ticker and update the curser there?
  6. Scaling parent and child element

    Thank you @OSUblake for the follow up and hope you had a good start into the new year! Out of curiosity Is GSAP using one continuously running rAF loop where we add our tween to or do we create a new rAF function/call with every new tween? I noticed that Safari has some issues following the scale and leave behind a trail (see video attached) - any idea on how to get rid of it? Thanks! Safari_scale.mp4
  7. Scaling parent and child element

    Thanks @OSUblake for the follow up and elaborations! I'm a bit puzzled about the requestAnimationFrame call. Maybe there is something I don't fully understand but I thought GSAP is using requestAnimationFrame for its animations so why do we add yet another layer to the mix? And does this means that you would use your requestAnimationFrame method as well for scroll and resize handlers for better performance or would a variable flag be enough?
  8. Scaling parent and child element

    I added now a small delay of 0.1 seconds which helps with the jittering but it would be great to have it without the delay. Any ideas?
  9. Scaling parent and child element

    For the purpose of demonstration I left the overflow property out but in the end I would like that the outer div follows the cursor and scales up when in the right coordinates but the inner div stays in its original scale. Hope this makes sense.
  10. Scaling parent and child element

    I experienced some lagging/jittering when I attach the scale fx. to the cursor - this could be because we update the cursor position at the same time as we scale. Thats way my question regarding setting a value while the element is animating. Maybe there is a better way to achieve this? Or is it simply too much for the browser to handle?
  11. Scaling parent and child element

    Thanks OSUblake for the follow up! It seems my question is more related to tweening (.to) and setting (.set) a property of the same element in parallel so maybe its better when I open a new post.
  12. Scaling parent and child element

    maybe I'm missing something OSUblake but it did not help with the value onUpdate? It almost seems as the update of the variable did not happen in the "update" function?!
  13. Scaling parent and child element

    Fixed it
  14. Scaling parent and child element

    Thanks OSUblake for your explanation and follow up. Really appreciate your help. For further animations I would need to update the "zoom" variable to the current zoom level during the animation. But unfortunately "_gsTransform.scaleX" gives me a value from 0 to 1 (for this example I set the original "zoom" to 10) I however would need a value form 10 to 1. function update() { zoom = test._mask._gsTransform.scaleX; } var tl = new TimelineMax({ repeat: -1, yoyo: true }); tl.to(test._mask, 1, { scale: 1, ease: ExpoScaleEase(zoom, 1, Power1.easeOut), onUpdate: update }, 0); tl.to(test._mask._inner, 1, { scale: 1, ease: ExpoScaleEase(invZoom, 1, Power1.easeOut) }, 0); Thanks for your help!
  15. Scaling parent and child element

    Thanks for the follow up! That looks interesting. Would you mind and walking me through your code and explain why this is a better approach?