W3C home > Mailing lists > Public > www-style@w3.org > April 2010

Re: transitions vs. animations

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Tue, 6 Apr 2010 09:07:07 -0700
Message-ID: <q2vdd0fbad1004060907nc806716p99add8ee2915e43c@mail.gmail.com>
To: Simon Fraser <smfr@me.com>
Cc: Brad Kemper <brad.kemper@gmail.com>, Chris Marrin <cmarrin@apple.com>, "www-style@w3.org list" <www-style@w3.org>
On Tue, Apr 6, 2010 at 8:59 AM, Simon Fraser <smfr@me.com> wrote:
> On Apr 5, 2010, at 11:07 PM, Brad Kemper wrote:
>
>> transition: left 1s play(bounce 1s infinite);
>
> There's a problem linking animations with transitions that hasn't been mentioned yet. What do you expect to happen in this case:
>
> .button {
>  left: 100px;
>  transition: left 1s play(bounce 1s);
> }
>
> .button:hover {
>  left: 100px;
> }
>
> Here, left isn't changing on :hover, so the transition wouldn't run, and thus nor would the bounce animation. Is that what you want?
>
> Controllable animations are still desired for this use case.

Yes, I expect it to not run if the transition doesn't run.

If you want something else to happen, then sure, a normal animation
might do what you want.

~TJ
Received on Tuesday, 6 April 2010 16:08:00 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:26 GMT