Closed korywka closed 8 years ago
Hi,
Sorry for the delay, I've been busy with moving to ES6. It's probably a bug I will have a look at it as soon as I can..
By the way, I used snabbt for animations here: http://macpaw.com/cleanmydrive (screen width > 1200px) and applications webview tutorials. The only inconvenience is too much callbacks (http://cdn.macpaw.com/media/7983b6b695c001b3dcb00cf036c762b4/js/cleanmydrive/cleanmydrive.js) =) snabbt is cool, thanks!
Wow, very nice work! Very cool to see snabbt put to good use :) The complete-callback issue with duration: 0 should be fixed in the latest release.
Also, I've been thinking about this callback-problems, so I've added sequencing in latest release as well. So instead of using callbacks you can specify an array of animations that will run in sequence:
snabbt.sequence([
[elementTwo, {
position: [100, 0, 0],
}],
[elementOne, {
position: [100, 0, 0],
}],
[elementOne, {
position: [0, 0, 0],
}],
[elementTwo, {
position: [0, 0, 0],
}],
]
);
It's still a bit of an experiment, so please let me know what you think.
This sequencing is awesome! Very nice improvement.
Will try next time, thx!
I was thinking about something like .done()
method, to chain sequences :)
I am trying to set starting position with
duration: 0
, but callbacks are not fired. Is it just me?