You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I want to use the timeline and animate my elements, based on some logic. I would run an algorithm, which adds animation to the timeline and in the end, I can play around with a slider and the seek function. The main issue is now, when I add a new animation to the timeline, the timeline animation starts from the beginning of the timeline, and not from the last position.
I added a simple code snippet here, to demonstrate it. The code below, shows the minimum I came up with, that demonstrate that behavior.
To Reproduce
<divclass="demo-content timeline-controls-demo"><divclass="line"><divclass="small square shadow"></div><divclass="small square el"></div></div></div><script>vartl=anime.timeline({duration: 500,easing: 'easeInOutSine',});asyncfunctionmove(){for(vari=0;i<10;i++){// adds some animation to the timelinetl.add({targets: '.square.el',translateX: i*10,});// here, I want to await the animation, // before I add a new animationawaittl.finished}}// starts the functionmove()</script>
Expected behavior
I thought, that I could simple continue from the point, where the animation finished, but it restarts everytime I add a new animation to the timeline. Even, if I set seek to a specific time, it would restart from the beginning.
Version
anime: 3.2.1
Desktop (please complete the following information):
OS: Windows
Browser [e.g. chrome, firefox]
Version [e.g. 22]
Additional context
I need to use await, because I actually do some other logic besides the animation, and I like to synchronize both.
The text was updated successfully, but these errors were encountered:
I did work on this in my fork in the feature-continue-branch. You can have a look there. I have also added a markdown file where I describe what I did.
juliangarnier
changed the title
timeline issue, when adding a new animation, it starts from the beginning
Timeline issue, when adding a new animation, it starts from the beginning
Apr 24, 2025
juliangarnier
changed the title
Timeline issue, when adding a new animation, it starts from the beginning
[BUG] Timeline issue, when adding a new animation, it starts from the beginning
Apr 25, 2025
Describe the bug
I want to use the timeline and animate my elements, based on some logic. I would run an algorithm, which adds animation to the timeline and in the end, I can play around with a slider and the seek function. The main issue is now, when I add a new animation to the timeline, the timeline animation starts from the beginning of the timeline, and not from the last position.
I added a simple code snippet here, to demonstrate it. The code below, shows the minimum I came up with, that demonstrate that behavior.
To Reproduce
Expected behavior
I thought, that I could simple continue from the point, where the animation finished, but it restarts everytime I add a new animation to the timeline. Even, if I set seek to a specific time, it would restart from the beginning.
Version
Desktop (please complete the following information):
Additional context
I need to use await, because I actually do some other logic besides the animation, and I like to synchronize both.
The text was updated successfully, but these errors were encountered: