Jump to content
Search Community

Reksa Andhika

Members
  • Posts

    23
  • Joined

  • Last visited

Posts posted by Reksa Andhika

  1. Hi, actually just quick question, because this can be change my behavior in future on writing gsap code.

    In gsap context docs, mostly the docs only show use case for react, meanwhile, I'm using vue/nuxt 3.

    So I have a question especially on reverting the context,  which one is the right one?

    Example 1: 
    image.png.6410cdf94ac57b67d915ac8bcee655ab.png

    Example 2 (define ctx variable outside and call the revert onUnmounted):
    image.png.4d886764fb337f56b82bc59f66aeeba9.png

    Or maybe there's a better way to code than these examples?

    Thank you.

  2. The function is working only when have one <p> @GreenSock

    when more than <p> it's duplicating line inside line, like:

    <div class="line">
      <div class="line">
        Text
      </div>
    </div>

     

    I remove this code, and it's working better, why do we need to this code anyway in your function?

    if (target.length > 1) {
      for (i = 0; i < target.length; i++) {
        split.lines = split.lines.concat(nestedLinesSplit(target[i], vars).lines);
      }
    }

     

  3. Please help, I have read the docs, it's possible but it will make the tag duplicate to make the good breaking line, and that's okay for me because I don't have "id" on nested splittext, only <b> or <strong>, so duplicating this will be okay. I have tried all property existed but not working, also already trying adding <b> display: line-block;

     

    The result that I want:
    image.png.2137eab4172b68a5d7d69ce924f2e523.png

     

    The result I got with splittext:

    image.png.2d5577d9d59e0836879116835d395266.png

    Thank you.

    See the Pen qBLOgoL by reksaandhika (@reksaandhika) on CodePen

  4. Hey Jack @GreenSock

    I can confirm beta is solved the issue, but I'm only do simple test, like trying to reload browser continuously but it is have difference than previous release and it looks great!

    • Like 2
  5. Okay will test it and let you know about it.

    Well that also scare me to use lazy: false, because most of my website using PJAX, so the transition animation and entering page will affected and lagging (but maybe I can add delay on enter page to let gsap do the job first, but ofc fast load need to be sacrifice).

  6. 22 hours ago, GreenSock said:

    It's very difficult for me to reproduce, but I believe this was already fixed in the upcoming release - can you please confirm that using this (beta) version resolves things?: 

    https://assets.codepen.io/16327/gsap-latest-beta.min.js

     

    You can also try setting lazy: false on your tween(s) to see if that has any effect. I suspect the latest beta resolves things, though. 

    @GreenSock Sorry can't help to test the beta (because I have no idea to test it on ES6 project with import method).

    But I can confirm set lazy: false to my tweens make the issue solved, but I'm afraid about the performance for disable this to all my tweens.

     

    If you confident the beta solved this issue, please make it live ❤ I would happy to update my gsap version for my production ready project.

  7. Hey, I think I have same issue, after I updating the GSAP >3.11.0 version,

    so currently I stay on GSAP 3.10.4 version to avoid random flash/glitch that ruins smooth experience animation

  8. Hmm make sense,
    What I mean, when pauseWait() called, it's like regular pause, but waiting for next tween to complete then pause is trigger, it's like using Promise.

     

    Quote

    how long to wait?

    Calculating by current duration, like first solution you did.

     

    Quote

    Where exactly to pause?

    After current tween complete / on next tween.

     

    or maybe the function name can be called timeline.pauseNext() 😅

     

    Anyway second solution is more awesome, especially when I have dynamic duration each animation.

  9. Hi, long time no ask in this forum, I hope forum still active helping people.

    So I have TextPlugin animation, and I want to start animation on hover, and pause on leave.

    Problem is, when I try to out hover, the text is paused immediately and make my text looks weird (not readable).

    Meanwhile I want to wait the tween/gsap to finish current step first (until text complete to composed), then do pause.

    See the Pen PoayOoG by reksaandhika (@reksaandhika) on CodePen

  10. 13 hours ago, ZachSaucier said:

    Hey Reksa and welcome to the GreenSock forums. Unfortunately we don't have the capacity to debug these sorts of issues for every person who posts in our forums for free. But if you're able to isolate the issue(s) we'd love to provide info on how to fix them. Or perhaps another generous person will come by and invest the time to debug to figure out where this issue is coming from.

     

    The GSAP 3 migration guide might be of interest as well as the GSAP 3 release notes.

    Thank you for reply. That's bad news for me :(

     

    I do read migration guide, and i think i do the right thing, but the result is just weird.

×
×
  • Create New...