docs on animation and css

This commit is contained in:
Leo Horie 2017-01-11 13:36:05 -05:00
parent 82b69ae60a
commit 6ff5265bf8
6 changed files with 218 additions and 12 deletions

View file

@ -40,9 +40,11 @@ function view() {
}))
}
function exit(vnode, done) {
function exit(vnode) {
vnode.dom.classList.add("exit")
setTimeout(done, 1000)
return new Promise(function(resolve) {
setTimeout(resolve, 1000)
})
}
function run() {