Re: transitions vs. animations

On Friday 2010-03-19 16:58 -0700, Simon Fraser wrote:
> > For example, I could imagine merging the properties as follows:
> > 
> > * combine animation-name and transition-property using a functional
> >   syntax, like:
> >     animation-???: transition(color), keyframes(wobble)
> >   where 'animation-???: transition(color)' == 'transition-property: color'
> >   and 'animation-???: keyframes(wobble)' == 'animation-name: wobble'
> > 
> > * make animation-duration, animation-delay, and
> >   animation-timing-function (and maybe also animation-play-state,
> >   if it's kept) apply to both types of animations (keyframe and
> >   transition)
> 
> But this prevents you from using a different duration for the transition and
> animation.

I don't think it does, since the normal use would be via the
shorthand, and all the properties are comma-separated lists:

  animation: keyframes(wobble) 2s 3, transition(color) 6s;

(Again, an additive cascade would be helpful here, but that's also
true of animations and transitions on their own.)

-David

-- 
L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/

Received on Saturday, 20 March 2010 02:26:39 UTC