Accumulation of to-animation

Another area of uncertainty regarding to-animation is how a repeated to-animation should behave when accumulate it set to sum. Should the animation build like other animations or repeat it’s normal to-animation?

Here is a simple example:

<svg xmlns=""&gt;

<circle fill="red" stroke="black" r="20">

<animateTransform attributeName="transform" type="scale"
to="2" dur="0.75" repeatCount="4" accumulate="sum"



And in your browser:

In Batik the to-animation repeats, and in Opera it just keeps growing. So which is right?

It’s not spelled out in the spec, but fortunately this has been addressed in SMIL3 which prefers the behaviour of Batik, i.e. the accumulate attribute has no effect. Cumulative animation of to-animation is not defined.

3 thoughts on “Accumulation of to-animation

  1. I think, the behaviour is already implied by the definition in the old SMIL
    animation recommendation.

    Because it starts with the underlying value and ends with the to-value, it does the same,
    if it is repeated, there is no choice to do something different, even if an author
    note accumulate sum, because for each repetition it starts again with the underlying value
    und ends with the to-value.
    But of course, in later SMIL versions this is much clearer, but the additions seem to be
    derived directly from implied consequences of the original definition.
    Therefore I test this already for animations within SVG1.1 depending on the old SMIL
    animation recommendation.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s