Re: [csswg-drafts] [web-animations-2] Allow multiple root effects per animations (#4464)

Thank you, I understand.

- I think that its a very common case, that one animation will be applied to more then one effect.
- to implement this, the current specification WA2, requires one to create a multiple instances of the same animation, duplicate its parameters and connect it to the different effects.
- the other way to do it, is to create a group effect, but creating additional instances (groups) is unnecessary waste of a runtime memory and performance.

I propose that one animation have a sequence of effects, instead of a single 'target' effect. In this way, there will be no need to waste the resources for more the one animation or grouping. The groups can be used only to facilitate some other significant processing (as a time change), but not for the sole purpose of grouping, that could be made by a simple sequence field.

And second, I propose more then one element to be targeted by the effect. That will also free the implementations of duplicated instances when the same effect will be applied to more then one element.

I don't think that sharing values thru property bags or other structures is a solution, because that implies that such structures are available (regardless of is that easy or not to implement). I think that the specifications should be general and reflect pure logic without assumptions.

-- 
GitHub Notification of comment by verbessern
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4464#issuecomment-548350909 using your GitHub account

Received on Thursday, 31 October 2019 12:33:02 UTC