W3C home > Mailing lists > Public > www-style@w3.org > November 2012

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

From: Sylvain Galineau <sylvaing@microsoft.com>
Date: Tue, 20 Nov 2012 20:09:29 +0000
To: Tab Atkins Jr. <jackalmage@gmail.com>, www-style list <www-style@w3.org>
Message-ID: <3C4041FF83E1E04A986B6DC50F0178291BE93EF2@TK5EX14MBXC222.redmond.corp.microsoft.com>

[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

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:05 UTC