[web-animations] Bubble animation events to effects

2015-05-27 Thread Glen Huang
Hi, I recently tried to manage very complex animation, and realized I need this feature: When animations fire ready and finish events, they first bubble into to the associated effects, if effects have nesting children, recursively bubble into them, after that, bubble back to animations, much li

Re: [web-animations] Bubble animation events to effects

2015-05-27 Thread Shane Stephens
Hi Glen, On Wed, May 27, 2015 at 5:09 PM Glen Huang wrote: > Hi, I recently tried to manage very complex animation, and realized I need > this feature: > > When animations fire ready and finish events, they first bubble into to > the associated effects, if effects have nesting children, recurs

Re: [web-animations] Bubble animation events to effects

2015-05-27 Thread Glen Huang
Hey Shane, thanks for replying so quickly. :) > If you have some specific examples where you want this behavior, perhaps we > can work through them with you? Sure. I was afraid providing concrete use cases and describe them clearly would make the mail too long, and nobody would want to read it.

Re: [web-animations] Bubble animation events to effects

2015-05-27 Thread Glen Huang
One thing I forget to say is that in the first use case, I could choose to not negate "justify-content: center", and simply animate with the logo and links all centered, but this makes the distance harder to calculate, and now logo and links have different slide distance. This is the "not wantin

Re: [web-animations] Bubble animation events to effects

2015-05-30 Thread Glen Huang
I hit another obstacle, but while trying to solve it, I think I gained new insight on how to solve the effect management problem. The obstacle is pretty straightforward: when multiple effects are nested, I need some of them to fill until the end the active phase of the root effect, while others

Re: [web-animations] Bubble animation events to effects

2015-06-16 Thread Glen Huang
The conversation unfortunately died. Maybe the use cases aren't compelling enough. That's totally fine. The only question I have is that in the responding mail, you said > You can do this with closures too. Just toggle the class in the classList. But I don't think I can. Your original suggesti

Re: [web-animations] Bubble animation events to effects

2015-06-22 Thread Shane Stephens
On Tue, Jun 16, 2015 at 7:07 PM Glen Huang wrote: > The conversation unfortunately died. > > Maybe the use cases aren't compelling enough. That's totally fine. The > only question I have is that in the responding mail, you said > > You can do this with closures too. Just toggle the class in the c

Re: [web-animations] Bubble animation events to effects

2015-06-25 Thread Glen Huang
Thank you. After our discussion on github, I was really inspired. I now think I should actually leave animated properties around instead of clearing them. This greatly simplifies how effects are created, and defining an effect as a reversed version of another becomes very easy. Putting an absol

Re: [web-animations] Bubble animation events to effects

2015-06-28 Thread Brian Birtles
Hi Glen, Sorry, I'm just now catching up on your feedback. On 2015/06/25 20:58, Glen Huang wrote: Also curious about two things: 1. Is zero duration, forwards filled, single keyframe effect valid and fills with the keyframe?; ``` new KeyframeEffect(el, {position: "static"}, {fill: "forwards"})

Re: [web-animations] Bubble animation events to effects

2015-06-29 Thread Glen Huang
Thank you for the detailed explanation. I think i have a better understanding on how to use web-animations now. > On Jun 29, 2015, at 9:42 AM, Brian Birtles wrote: > > Hi Glen, > > Sorry, I'm just now catching up on your feedback. > > On 2015/06/25 20:58, Glen Huang wrote: >> Also curious abo