Jump to content
Search Community

YazeedB

Members
  • Posts

    5
  • Joined

  • Last visited

Everything posted by YazeedB

  1. Yup makes perfect sense! Thank you for the clear and thorough explanation. The callback function idea is great, so cool to see GSAP covering all these bases. I've refactored to this version, and it now handles arrays without duplicates, and the resulting code is lighter.
  2. Not at all! In fact your earlier answer confirmed my gut feeling—setTimeout is likely an anti-pattern here. What do you think of this new Codesandbox? Literally just finished, and it's 100% GSAP now. Still trying to make the pointers bounce like last time though ?
  3. Makes sense, thank you for the thorough answer. So for the Red/Blue pointer march, how would you conceptually animate it? These two pointers march until they're equal—which means you've found a duplicate number. I'm still learning to "think in GSAP", so setTimeout still feels like the obvious solution ?
  4. Hey @GreenSock, thanks for the prompt response! My specific concern is the structure itself. I'm wondering if Scene 3, the Two-Pointer animation, can be nicely done in GSAP. I had to resort to setTimeout + useEffect, which required me to hack around with pause/play to keep the animations in sync. Is there a clean way to visualize this using a single GSAP timeline? Parent/child timelines would be fine too, I'd have to research it more though.
  5. Hi folks, Link to demo Super impressed with GSAP, thank you for creating this amazing tool. It's my first time, and I'm integrating it with React to create an algorithm visualization tool. Can someone let me know if this animation follows GSAP best practices (probably doesn't)? A Codesandbox demo was easy to setup, so hope that's okay!
×
×
  • Create New...