Jump to content
Search Community

1N54N3

Members
  • Posts

    7
  • Joined

  • Last visited

1N54N3's Achievements

  1. Thanks. It works perfectly. Also thanks for explanation how it works behind the scene. Maybe i tried this solution earlier, but without some fixes I couldn't get it work. With explanation i understood what i need to fix and i did it.
  2. In the video above i click play, wait 2s, pause and the box are jumps because of unpausing paused tween I want to unpause tween without changing the current state, by unpause
  3. I'm sorry but i'm again edited pen and autosave is broke my example. Not it should be able to reproduce Also i now how tweens and timeline works. I know that its expected behavior. I'm just looking for the solution. Screen Recording 2023-09-15 at 11.53.43 PM.mov
  4. I created a new one example with only one target, and it's really easy to reproduce https://codepen.io/rewriteh/pen/vYvJYwZ 1. Play 2. Wait green box any move 3. Pause 4. Box jumps forward but it shouldn't Unpausing any tween should not make any sense of current state Hi, @Rodrigo may i create a new thread?
  5. I'm sorry. I make some changes and autosave is saved this. Now it should be able to reproduce hide some specific tweens, but show them — I pause some tweens while timeline is about to play, and shows them when timeline is about to pause. The problem is that when i show (unpause tweens) they are breaking the current state of timeline like in the example above - the red box is changes current state, even if its behind. 1. Click Play pause fromMove timeline.play() called 2. Wait 2-3 seconds 3. Click Pause unpause fromMove timeline.pause() called 4. Now the red box moves. But it should not make any move. — Pause fromMove to hide it while timeline is unpaused: timeline.paused === false — Unpause fromMove in third step only for allow to seek through this animation like a timeline.seek(1)
  6. I'm building video editor timeline, and i need to hide/show specific (like red box in codepen above) tweens basing on timeline paused() state. — While timeline is playing i need to hide some specific tweens, but show them if timeline is paused — When i unpause tween i'm expect the tween that behind the current time should not change current timeline state, because it behind the current time. — I unpause specific tweens only to allow user seek through it, when video is paused. I'm not looking for set() method because in real case the green box is depends on red box when timeline is paused (i'm not showed this case on codepen above).
  7. Hi! i'm new to gsap and i'm wondering how .paused() and .resume() are works I have a case, when i need to hide (pause) specific tweens while timeline in playing state but unhide (unpause) it when timeline is about to pause. The problem is when I unpause tweens this instantly applies and changes the current state, even if the tween with duration: 1 added to timeline.time(5), while we paused timeline in timeline.time(9) I'm tried some tricks with .timeScale(0) and .timeScale(1) and combining other tween methods but nothing works correct :( Is there any way to unpause tween without affecting the current state? The pen To reproduce it just click start button and then after 2-3 seconds click pause button Problem: red box moves after it. Solution: red box should not moves after it.
×
×
  • Create New...