@litecanvas/utils 0.24.0 → 0.24.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@litecanvas/utils",
3
- "version": "0.24.0",
3
+ "version": "0.24.1",
4
4
  "description": "Utilities to help build litecanvas games",
5
5
  "author": "Luiz Bills <luizbills@pm.me>",
6
6
  "license": "MIT",
@@ -126,6 +126,18 @@ moveRight.chain(moveLeft)
126
126
  moveRight.start()
127
127
  ```
128
128
 
129
+ ### TweenController#delay()
130
+
131
+ Wait a amount of seconds before starts the animation.
132
+
133
+ Syntax: `.delay(seconds: number): this`
134
+
135
+ ```js
136
+ tween(...)
137
+ .delay(3)
138
+ .start() // wait 3 seconds before starts
139
+ ```
140
+
129
141
  ### TweenController#onEnd()
130
142
 
131
143
  Enqueues a callback to be executed when the animation finishes.