W3C home > Mailing lists > Public > www-svg@w3.org > March 2002

"to" animation question

From: Antoine Quint <antoine@graougraou.com>
Date: Mon, 18 Mar 2002 16:43:12 +0100
To: <www-svg@w3.org>, <www-smil@w3.org>
Message-ID: <002f01c1ce93$9c9724f0$4a0510ac@latitude324>
Hi there,

I think I encountered a bug in the Adobe SVG Viewer 3.0, but I would
like to check here with animation wizards. Consider this bit of code:


<svg width="800" height="600">

  <text id="link1" x="10" y="50">50</text>
  <text id="link2" x="10" y="100">100</text>
  <text id="link3" x="10" y="150">150</text>
  <text id="link4" x="10" y="200">200</text>

  <rect x="300" y="-50" width="50" height="50">
    <animate attributeName="y" to="50" dur="0.1s" begin="link1.click"
fill="freeze" />
    <animate attributeName="y" to="100" dur="0.1s" begin="link2.click"
fill="freeze" />
    <animate attributeName="y" to="150" dur="0.1s" begin="link3.click"
fill="freeze" />
    <animate attributeName="y" to="200" dur="0.1s" begin="link4.click"
fill="freeze" />



Now do the following:

1. click on "50"
2. click on "200"
3. click on "200" again

What I would expect from my code here is to have the rectangle stand
still in between steps 2 and 3, as I understand that this kind of "to"
animation takes the last animated value as the underlying value for
computation. The weird thing that is happening is that the rectangle
actually replays the last animation instead! I have looked at the SMIL
Animation specification and it seems to be the incorrect behavior.
Anyone can confirm that this is an Adobe SVG Viewer bug? If not, can
anyone shed some light on what is wrong with my code? Thanks,

Received on Monday, 18 March 2002 10:45:30 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:53:54 UTC