File tree 3 files changed +7
-27
lines changed
dev/html/public/playwright/animate
packages/motion-dom/src/animation 3 files changed +7
-27
lines changed Original file line number Diff line number Diff line change 51
51
mini . finished . then ( ( ) => {
52
52
miniElement . innerHTML = "finished"
53
53
} )
54
- js . finished
55
- . then ( ( ) => {
56
- jsElement . innerHTML = "finished"
57
- } )
58
- . catch ( ( ) => {
59
- console . log ( "js rejected" )
60
- } )
54
+ js . finished . then ( ( ) => {
55
+ jsElement . innerHTML = "finished"
56
+ } )
61
57
waapi . finished . then ( ( ) => {
62
58
waapiElement . innerHTML = "finished"
63
59
} )
Original file line number Diff line number Diff line change 44
44
options
45
45
)
46
46
47
- mini . then ( ( ) => {
47
+ mini . finished . then ( ( ) => {
48
48
document . getElementById ( "mini" ) . innerHTML = "finished"
49
49
} )
50
- js . then ( ( ) => {
50
+ js . finished . then ( ( ) => {
51
51
document . getElementById ( "js" ) . innerHTML = "finished"
52
52
} )
53
- waapi . then ( ( ) => {
53
+ waapi . finished . then ( ( ) => {
54
54
document . getElementById ( "waapi" ) . innerHTML = "finished"
55
55
} )
56
56
57
- // mini.finished.then(() => {
58
- // document.getElementById("mini").innerHTML = "finished"
59
- // })
60
- // js.finished.then(() => {
61
- // document.getElementById("js").innerHTML = "finished"
62
- // })
63
- // waapi.finished.then(() => {
64
- // document.getElementById("waapi").innerHTML = "finished"
65
- // })
66
-
67
57
delay ( ( ) => {
68
58
mini . stop ( )
69
59
js . stop ( )
Original file line number Diff line number Diff line change 1
- import { noop } from "motion-utils"
2
1
import { GroupAnimation } from "./GroupAnimation"
3
2
import { AnimationPlaybackControlsWithThen } from "./types"
4
3
@@ -7,11 +6,6 @@ export class GroupAnimationWithThen
7
6
implements AnimationPlaybackControlsWithThen
8
7
{
9
8
then ( onResolve : VoidFunction , _onReject ?: VoidFunction ) {
10
- return this . finished
11
- . then ( ( ) => {
12
- onResolve ( )
13
- console . log ( "onResolve" )
14
- } )
15
- . catch ( noop )
9
+ return this . finished . finally ( onResolve ) . then ( ( ) => { } )
16
10
}
17
11
}
You can’t perform that action at this time.
0 commit comments