Skip to content

Releases: Kelin2025/nanotween

Release v0.7

Choose a tag to compare

@Kelin2025 Kelin2025 released this 18 Jan 01:34

New features

  • reverse event (when running animation is reversed)
  • Added remainingTime/completedTime to meta. Also added progressMatched property with converted progress.
  • progress event now also has meta info.

Removed features

  • None

Bug fixes

  • update starts and ends with incorrect data (see #2)
  • Incorrect repeats count after reverse (see #3)

API changes

  • .convert(cb) - cb now accepts progress as 2nd argument
    1st converter's argument is a value received from previous one.
    Additional 2nd argument lets you get pure progress value
  • .use(cb) - cb now accepts options as 2nd argument.

Migration info

  • If you have some logic based on steps count and .reverse() methods - see bug fixes

Release v0.6

Choose a tag to compare

@Kelin2025 Kelin2025 released this 16 Jan 14:23

New features

  • Completely removal tweens from queue (see wiki)

Removed features

  • None

Bug fixes

  • None

API changes

  • Added .remove() method
  • tween.state now has id property and isRemoved flag

Migration info

  • No additional steps needed