Heyo,
I'd like to gather some thoughts on having a deferred interface for Morpheus would look like. I had some thoughts...
the first seems most attractive, however it's not necessarily callback based, but rather a continual pass of an options hash....
morpheus({
opacity: 1
})
.then({
left: '+=50'
})
.then({
top: '-=40'
})
this would execute each in order, each waiting for the previous to complete.
another implementation would be just to pass in functions, each executing immediately after the original animation is done....
morpheus({
opacity: 1
})
.then(function () {
// do whatever...
})
.then(function () {
// do whatever
})
even yet another spin on that — passback complete methods...
morpheus({
opacity: 1
})
.then(function (complete) {
morpheus({
left: 50,
complete: complete
})
})
or we could spin up a new method that works like the first example, just on a different method...
morpheus.waterfall({
})
.then({})
.then({})
thoughts?
Heyo,
I'd like to gather some thoughts on having a deferred interface for Morpheus would look like. I had some thoughts...
the first seems most attractive, however it's not necessarily callback based, but rather a continual pass of an options hash....
this would execute each in order, each waiting for the previous to complete.
another implementation would be just to pass in functions, each executing immediately after the original animation is done....
even yet another spin on that — passback
completemethods...or we could spin up a new method that works like the first example, just on a different method...
thoughts?