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

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

From: Judson Lester <nyarly@gmail.com>
Date: Wed, 02 Nov 2016 17:52:55 +0000
Message-ID: <CAOpbp3df5NVHvuki=zpk=W0NkBvK0BWAyuueabV=fDiJHLFAtQ@mail.gmail.com>
To: www-style@w3.org
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.)

Received on Wednesday, 2 November 2016 17:53:38 UTC

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