Re: transitions vs. animations

On Apr 7, 2010, at 7:52 AM, Tab Atkins Jr. wrote:

> The "play-in" and "play-during" I suggested are exactly the same as
> the current Animations draft

I'm confused. I don't see those in the Animations draft. 

> - play-in animations are just finite
> iterations, while play-during are infinite.  There is no concept of
> "events" or "states" invented to handle them; they trigger purely
> through CSS values changing, exactly like the current Animations
> draft.  

Animations play for anything that you can write a selector for, including one with no pseudo-class. The values do not need to change to trigger them; they can be there as soon as the element is loaded with its specified values. 

On April 5, you said this:

> I propose to address this use-case and solve this problem by
> explicitly separating the concepts of an animation run when an element
> enters a state, leaves a state, or is in a state.  Rather than a
> single "animation" shorthand property, and an associated set of
> "animation-*" subproperties, I propose having three shorthand
> properties, "play-in", "play-out", and "play-during".

So, yes, you are looking at states, and you are looking at when those states start and end. Since a state represented by :hover is triggered by a mouse-over (or mouse-enter) and ended by a mouse-out (or whatever), then you are in essence handling events.

Received on Wednesday, 7 April 2010 15:17:54 UTC