Re: Units of time in Web Animations [was: Intent to Ship: Element.animate]

On Thu, Apr 17, 2014 at 8:40 AM, Jeremie Patonnier <
jeremie.patonnier@gmail.com> wrote:

> Hi :)
>
>
> 2014-04-17 0:30 GMT+02:00 Shane Stephens <shans@google.com>:
>
> On Thu, Apr 17, 2014 at 8:21 AM, Domenic Denicola <
>> domenic@domenicdenicola.com> wrote:
>>
>>>  Regardless of spec examples, all of the real-world CSS transition and
>>> animation code I've seen uses the ms unit, not the s one. I don't think CSS
>>> provides any guidance here.
>>>
>>
>> The first three sites I found transitions on use seconds:
>> google.com uses 0.1s, 0.5s (not 100ms, 500ms).
>> twitter.com uses 0.3s (not 300ms)
>> www.smh.com.au uses 0.4s, 0.1s (not 400ms, 100ms)
>>
>
> This is statistically inaccurate. There are millions of web sites out
> there. How those three could be representative of all the rest?
>


I think this is a good counter-point to Domenic's assertion ("all of the
real-world CSS transition and animation code I've seen uses [...] ms"). It
wasn't intended to be a thorough statistical analysis :)


>
>
>> Literally the first 3 transitions tutorials I found use seconds:
>>
>> https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Using_CSS_transitions
>> http://css3.bradshawenterprises.com/transitions/
>> http://docs.webplatform.org/wiki/tutorials/css_transitions
>>
>
> Which does not presume of what users are truly doing. CSS support both
> second and millisecond. If both are supported, it's because both are used.
>
>
>> Do you have counter-examples?
>>
>
> Unfortunately, no time now to provide you a list, but basically, all the
> web sites my company is working on (we prefer using milliseconds... but I
> do not assume our behavior is the general one)
>
> It would be great if you could provide more accurate statistics.
>

Seeing some popular websites using milliseconds would be a great indication
that there was even contention here...

Cheers,
    -Shane


> best
> --
> Jeremie
> .............................
> Web : http://jeremie.patonnier.net
> Twitter : @JeremiePat <http://twitter.com/JeremiePat>
>

Received on Wednesday, 16 April 2014 22:45:22 UTC