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

Re: [css3-animations] [css-transitions] animation-delay animatable?

From: Brian Birtles <bbirtles@mozilla.com>
Date: Fri, 4 Nov 2016 09:23:25 +0900
Message-ID: <CAF-W_FTT75fpDhGZPHMukQCRBs5q9R7EEWzUFfpjvBGVOZc2UA@mail.gmail.com>
To: Judson Lester <nyarly@gmail.com>
Cc: "www-style@w3.org list" <www-style@w3.org>
Hi Judson,

Thanks for your mail. For your reference, we now prefer to have these spec
discussion on GitHub issues. Admittedly, the latest Working Draft of CSS
Animations still refers to the mailing list but I hope to fix that soon.

What is the change that is desired that can't be achieved with transitions?
Are you, for example, trying to produce an animation with intermediate
keyframes (i.e. animate A -> B -> C instead of just A -> B)? If that's the
case, we should just extend CSS transitions to support that (and I believe
that has been discussed in the past). I think making animation-delay
animatable would introduce a lot of complexity.

If you want to follow up, please file an issue at [1] with a title like the
subject you used here (i.e. "[css-animations] ...")

Best regards,

Brian

[1] https://github.com/w3c/csswg-drafts/issues

On Thu, Nov 3, 2016 at 2:52 AM, Judson Lester <nyarly@gmail.com> wrote:

> Would it be possible to extend the Animation draft to allow
> animation-delay to be animatable?
>
> The motivation here is that there are cases where it would be useful where
> transition behaviors are desireable, but the changes desired are only
> provided by animations. For instance, using :hover in a navigation menu to
> disclose sub-items. If an animation is used for the disclosure, when :hover
> is removed, the items simply vanish; if the no-hover style includes the
> animation, that animation occurs on page load.
>
> If, instead, there were a paused animation attached to the element, and
> :hover could transition animation-delay back to -duration, then the
> animation could play out from there, and reverse when :hover was removed.
>
> There's the obvious objection that the behavior of animating
> animation-delay from within an animation would be badly defined; perhaps
> that's simply defined to have no effect?
>
> Is this possible? A bad idea? Unneeded? (although I've yet to see a way to
> accomplish this effect without this CSS behavior.)
>
> Judson
>
>
>
Received on Friday, 4 November 2016 00:23:58 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:09:05 UTC