W3C home > Mailing lists > Public > www-style@w3.org > August 2015

Re: [css-animations] Should changing animation-delay cause an animation to run?

From: Brian Birtles <bbirtles@mozilla.com>
Date: Thu, 13 Aug 2015 08:41:57 +0900
To: Simon Fraser <smfr@me.com>, "www-style@w3.org list" <www-style@w3.org>
Message-ID: <55CBD9C5.8070305@mozilla.com>
On 2015/08/13 4:05, Simon Fraser wrote:
> I think that only changes in animation-name (and maybe the presence of referenced @keyframes) should trigger running.

Are you suggesting that delay does not update?

i.e., that the following two code fragments produce different results?

  // A
  elem.style.animationName = 'abc';
  elem.style.animationDuration = '3s';
  elem.style.animationDelay = '5s';

  // B
  elem.style.animationName = 'abc';
  elem.style.animationDuration = '3s';
  elem.getBoundingClientRect();
  elem.style.animationDelay = '5s';

Best regards,

Brian
Received on Wednesday, 12 August 2015 23:42:29 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 12 August 2015 23:42:30 UTC