Re: "to" animation question

Hello!

Another question.

I slowed the rect down by changing the dur values to 3s.
If you start the animation at 50 and hit 200, the rect moves down.
If You hit 100 or 50 before the animation is over, it jumps to the 
end position 200, and then moves to 100/50. Shouldnīt there be a 
possibility to get the y value of the rect, when the 100/50 is hit?
For example a 178 for the y?
So You can stop the rect in itīs move and order it to another 
position without a "jump" for a fluent motion.

Just an idea for the next versions.

Happy working,
Stefan


On 18 Mar 2002 at 16:43, Antoine Quint wrote:

> 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" />
>   </rect>
> 
> </svg>
> 
> =======================
> 
> 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,
> 
> Antoine
> 


-- 
Stefan Schumacher
Oesterberg 20                                   0172/2718968
58553 Halver                                    02353/130119
Germany
www.schumacher-netz.de

Received on Monday, 18 March 2002 18:19:16 UTC