Skip to content

Conversation

@lajbel
Copy link
Member

@lajbel lajbel commented Jun 30, 2025

Please describe what issue(s) this PR fixes.

This feature differentiates 3 kinds of moments in an animation end:

  • onEnd:
    • Last frame is reached
  • onStop:
    • Last frame is reached
    • Is changed by using obj.play()
    • Is stopped by using obj.stop()
  • onLoop:
    • Normally, when last frame is reached and animation is looped
    • In case of pingpong, when last or first frame is reached and animation is looped

Summary

@lajbel lajbel added the enhancement New feature or request label Jun 30, 2025
@pkg-pr-new
Copy link

pkg-pr-new bot commented Aug 11, 2025

Open in StackBlitz

npm i https://pkg.pr.new/kaplayjs/kaplay@822

commit: e2bf7e0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: onEnd/onAnimEnd doesn't run when an animation in loop ends

2 participants