Open faroutchris opened 1 year ago
I'm holding off a bit on this one, I'm playing around with resuming and cancelling animations properly, which this api doesn't do well currently.
I have a draft I'm working on but it changes a bit of the api surface. But it might actually make it a lot easier to work with as well.
I'm thinking animate(element, options).moveY(100).rotate(180)
. And if you chain a new animation on the element, it resumes from its current position and correct duration.
Finally done, the api seems pretty easy to use at this point.
@thisisphan @calebgasser
Very nice! It looks great.
Get animation options from DOM
makeAnimation()
returns two animations corresponding to the name passed in, ie "fadeDown".type { in: Animation, out: Animation }
This api for animations is just a wrapper for Web Animations API