W3C home > Mailing lists > Public > www-style@w3.org > July 2014

Re: Ignored Properties Inside a @keyframes block

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Wed, 23 Jul 2014 10:16:23 -0700
Message-ID: <CAAWBYDCC4Uc+PhQyu0BDpC9dbjqF-wGcQz_S=6-9hBrOdbF1nw@mail.gmail.com>
To: Sara Soueidan <sara.soueidan@gmail.com>
Cc: www-style list <www-style@w3.org>
[please don't top-post: http://wiki.csswg.org/tools/www-style]

On Wed, Jul 23, 2014 at 8:42 AM, Sara Soueidan <sara.soueidan@gmail.com> wrote:
> Hi Tab,
>
> Thank you for the reply. :)
>
> All is good, but I'm curious about the part where u said " flipping from the
> start value to the end
> value at 50% of the transition's progress.
> "
> Is there any specific reason why the value should flip to its end value at
> 50% and not 100% of the animation?

Symmetry.  Makes it work the same regardless of what "direction" the
transition happens in.

'visibility' is an exception to this, from before we added the general
rule, but note that it actually has slightly different behavior -
mixing "visible" and "hidden" always results in "visible" unless it's
at 100% "hidden".  This was done so that if you were hiding/showing an
element with a transition, you could use 'visibility' to ensure it's
completely hidden at the end of the animation, but you want it to go
back to being visible immediately once you start an unhide animation.

~TJ
Received on Wednesday, 23 July 2014 17:17:11 UTC

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