Jump to content
Search Community

pietM

Premium
  • Posts

    93
  • Joined

  • Last visited

2 Followers

About pietM

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Thanks for taking the time, @Rodrigo! This is very helpful and appreciated. I know about Draggable's built-in boosting, but was unclear about how to achieve this using the GSAP Observer. This is what I needed: // Increase the z-index value and apply it to the target element zIndex++; gsap.set(item, { zIndex }); Thank you!!
  2. Hey everyone, Is there a simple way to boost z-index of active element with GSAP Observer? I thought I could achieve this will class shift and function. Any ideas are appreciated. Thank you! https://codepen.io/evryali/pen/XWQjWRY
  3. Thank you, @mvaneijgen! I tried to bring the logic into the functions, but neglected to include your "onComplete" functions to halt animation. Thanks again! A huge help.
  4. Hi everyone, I'm trying to adapt GSAP's Observer to trigger both "prev" and "next" click behaviors, but the "up" and "down" events don't match "click" events -- even when I set draggable to "false". Any thoughts? https://codepen.io/evryali/pen/NWmNdKj
  5. Thank you @ryan_labar , @mvaneijgen and @PointC!! This probably isn't as elegant as the proposed solutions , but it came down to how to link the array to GSAP's shuffle utility. Thanks again for the speedy and useful feedback. Love this platform!! Here's my solution: https://codepen.io/evryali/pen/vYPxvzr/94e2c7952237f4236535cceabbc1a64a
  6. Great. Thank you @mvaneijgen@ryan_labar!! Calling the function onComplete makes sense! But, is there a way to achieve the random re-set, etc. without the use of keyframes? Is there a reason NOT to use a timeline (If I wanted to add complexity to the animated sequence)? Thanks for your feedback and help!!
  7. Hi all! I'm trying to run a timeline using gsap's toArray and random utilities. In the attached demo, I have a simple sequence that I would like to randomize and re-randomize on repeat. 2,5,7,8,9....etc. repeat 3,8,7,1,2...etc. I've reviewed the documentation and haven't been able to figure out how to implement gsap's random or shuffle utility to achieve this. As always, I appreciate any and all guidance.
  8. Thank you! Your prompt response, as always, helped to fix the issue. Working pen enclosed. Thanks again! https://codepen.io/evryali/pen/WNKVvgm
  9. Hi everyone! Not sure why the enclosed timeline doesn't reverse on click when I can revers w/ ScrollTrigger and "mouseleave" events? As always, any feedback is greatly appreciated. "Closer" / ".closer" class should do it.
  10. Ah! Thank you for taking the time. This is perfect and so helpful! Thanks again.
  11. Hi Everyone! I have a timeline that plays and reverses based on scroll direction. I also use a mouse enter/leave function to trigger/control the same timeline. When using ScrollSmoother the direction overrides the mouse enter/leave functions (the timeline won't play until the scroll is at rest, even when I trigger mouse enter/leave events). My question: Can I overwrite the scroll control to prioritize the "mouse enter/leave" functions? Thanks, as always.
  12. pietM

    Stacking Splits

    This is great, @Cassie! Thank you!
  13. pietM

    Stacking Splits

    Thank you @Cassie ! I'll work on it! For now, I realize I can reset with an "onRepeat" function, rather than "onComplete". Thinking way too much over here. Thanks again! M
  14. pietM

    Stacking Splits

    Thanks, Jack! Okay, I have the splits sequenced (I think I was overthinking it), but now I'm trying to reset the heights to "0" after the master completes with an onComplete function. But it's not working. Have a look. https://codepen.io/evryali/pen/bGvRwyY Thank you!
  15. pietM

    Stacking Splits

    Thanks for getting back! In the example, there are three discrete splitText animations sequenced by a master timeline. timeline 1: 1/3 timeline 2: 2/3 timeline 3: 3/3 2/3 replaces 1/3. 3/3 replaces 2/3. Then the whole timeline repeats. Rather than fading each animation out, I'd like to stack them: So, after 1/3 completes, the text block gets pushed up to make room for 2/3 and so on. Does that make sense??
×
×
  • Create New...