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

[CSS, idea] Animations *are* Transitions.

From: Andrew Fedoniouk <news@terrainformatica.com>
Date: Wed, 7 Apr 2010 19:29:18 -0700
Message-ID: <4A6667C441D84B94A8FF2FDAE0AA9CC0@terra3>
To: <www-style@w3.org>
It appears that current CSS Animation proposal is about two problems:

1) Keyframes - the way of defining relatively complex ease (timing) 
functions.
2) Infinite execution of transitions.

So what about the following:

a) To add following attribute:
    transition-iterations: <number> | infinite;

b) To add, say, @-rule named 'profile'
     @profile "name" <percent1>/<value1> <percent2>/<value2> ... 
<percentN>/<valueN>;
    where the <value> is in this case some decimal (not exactly in the range 
0.0 ... 1.0)

Having the @profile in place we can declare that "wobble" thing as:

@profile "wobble"  0% 1.0,  40% 1.5, 60% 0.75, 100% 1.0;

and use it as:

div
{
    transition: left "wobble" 400ms infinite;
}

So the transition will be the sole entity that will define various 
animations.
(Actually I would just rename such unified 'transition' to 'animation' as it 
is more
opaque word for such group of effects).

And yet, the @profile can be used for defining gradients and so to simplify 
their syntax too.

-- 
Andrew Fedoniouk

http://terrainformatica.com







 
Received on Thursday, 8 April 2010 02:30:35 GMT

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