W3C home > Mailing lists > Public > public-css-archive@w3.org > August 2021

[csswg-drafts] [css-animations-2] Should the initial value for animation-duration be auto? (#6530)

From: Robert Flack via GitHub <sysbot+gh@w3.org>
Date: Fri, 20 Aug 2021 02:23:14 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-975198886-1629426192-sysbot+gh@w3.org>
flackr has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-animations-2] Should the initial value for animation-duration be auto? ==
[css-animations-1](https://drafts.csswg.org/css-animations/#animation-duration) defines the initial value of animation-duration to be 0s. However, the web-animations specification [allows for the 'auto' keyword](https://drafts.csswg.org/web-animations-1/#dom-effecttiming-duration) which is useful for scroll-animations and group animations where the duration should be [determined automatically](https://drafts.csswg.org/web-animations-2/#duration).

Since the computed value of 'auto' for regular animations is 0s, it seems to me that we could safely change the initial value of animation-duration to be 'auto', and this would allow using a scroll-timeline animation or possibly a group effect animation without having to explicitly set the auto duration.

@birtles WDYT?

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6530 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 20 August 2021 02:23:15 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:42 UTC