RE: [css3-animations] Ability to have "adjacent" keyframes / "instantaneous" interpolations


[Tab Atkins Jr.:]
> 
> You can hack around the issue a bit by using
> "animation-timing-function: step-start;" in the first keyframe, so it at
> least flips immediately to the next value without a transition in the
> middle, but this is hacky and non-obvious.  

Hard to judge what is non-obvious but setting some value of animation-timing-function
on the keyframe in question seems the right approach to me. We allow animation-timing-function
to be specified on individual keyframes so the author can control how values transition during
a keyframe. Overall I do not think the step-start answer would non-obvious to someone who
understands the step-* values. I think it is true, however, that many people do not know you
can set animation-timing-function within @keyframes.

So while we can argue on how discoverable this may be I do not think it is 'hacky'. 

Received on Tuesday, 20 November 2012 20:10:27 UTC