Skip to content

Commit 88d3ec1

Browse files
committed
docs on animation and css
1 parent 31e2dbc commit 88d3ec1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

animation/mosaic.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,11 @@
4040
}))
4141
}
4242

43-
function exit(vnode, done) {
43+
function exit(vnode) {
4444
vnode.dom.classList.add("exit")
45-
setTimeout(done, 1000)
45+
return new Promise(function(resolve) {
46+
setTimeout(resolve, 1000)
47+
})
4648
}
4749

4850
function run() {

0 commit comments

Comments
 (0)