@taole/giftstage 0.1.17 → 0.1.18
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/README.md +7 -0
- package/dist/gift-stage.cjs.js +4 -4
- package/dist/gift-stage.es.js +233 -218
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -181,6 +181,8 @@ Promise<GiftHandle>;
|
|
|
181
181
|
|
|
182
182
|
- `.to(step)` / `.then(step)`
|
|
183
183
|
- 追加动画步骤(两者等价)
|
|
184
|
+
- `.delay(milliseconds)`
|
|
185
|
+
- 在链中插入等待,不改变位置、缩放和透明度
|
|
184
186
|
- `.onComplete((gift) => void)`
|
|
185
187
|
- 整条链执行完成后的回调
|
|
186
188
|
- `.start(mode?)`
|
|
@@ -401,6 +403,11 @@ await gift
|
|
|
401
403
|
opacity: 1,
|
|
402
404
|
duration: 700,
|
|
403
405
|
})
|
|
406
|
+
.delay(300)
|
|
407
|
+
.then({
|
|
408
|
+
opacity: 0,
|
|
409
|
+
duration: 400,
|
|
410
|
+
})
|
|
404
411
|
.onComplete((g) => {
|
|
405
412
|
console.log('chain complete', g.id);
|
|
406
413
|
})
|