-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable parallel playing of steps on the same animation #38
Comments
Thanks for opening the issue! I took a peek at what would be involved to implement this and it requires some subtle changes to how the animations are run. So, I'm thinking this is going to be a part of the next major release, it's not going to happen immediately. As far as api, I think probably the best thing is to just update the description of newAnimation =
model.animation
|> Animation.interrupt anim1
|> Animation.interrupt anim2
|
I was looking for the exact same thing and I ended up implementing it like that: https://ellie-app.com/SbK5377Vyra1
Although I was looking to implement it like that:
|
Just upvoting this :) Also it never occurred to me to use multiple |
This makes it easier to re-use and combine existing step specifications. Imagine a
flicker
animation and awiggle
animation, playing independently (maybe also looping).I'm not sure if
interrupt
is the right constructor for this as its description saysMaybe a new function like
Animation.parallel
,Animation.also
orAnimation.and
might work?The text was updated successfully, but these errors were encountered: