Re: Animating <polygon> along a path - weird behavior

Hi,


On Aug 8, 2014, at 10:33 AM, Nikos Andronikos <Nikos.Andronikos@cisra.canon.com.au> wrote:

> 
> On 8/08/2014 10:19 AM, Dmitry Baranovskiy wrote:
>> I am pretty sure you are aware, but you can fix it by adding  transform="translate(-433,-392)” to the group element. 

This transforms the user space so that the element is in the center of the coordinate origin. Great idea. It is not very intuitive for users though. I wonder if we could support them with this. But real support would just be to change the default behavior and that might be risky. :/


> Works in Safari, but in FF I get completely wacky behaviour - the path with id="route" starts moving.
> Chrome doesn't seem to support animateMotion on polygon at all.
> 
> So the original issue could be that you're expecting the crosses origin to be in it's center, when it's really at 0,0.
> Or it could be browser support for animateMotion?

It works in all browsers for me, Safari, Chrome and Firefox. Did you maybe added the transform to the animation path? Because this will make it behave as you describe.

Greetings,
Dirk

> 
>> 
>> 
>> On 8 Aug 2014, at 5:04, Sara Soueidan <sara.soueidan@gmail.com> wrote:
>> 
>>> Hello guys,
>>> 
>>> So I was trying to animate a <polygon> along a path using <animateMotion> and got some unpredictable behavior. 
>>> 
>>> Here is a live example: http://jsfiddle.net/SaraSoueidan/qL0hz6kr/6/
>>> 
>>> The red cross is a <polygon> that I'm trying to animate along path#route.
>>> 
>>> You can see how it behaves in the live demo.
>>> 
>>> I then tried to wrap the polygon in a group <g> and animate the group instead; got the same result.
>>> 
>>> Upon asking Dirk Schulze about this issue, he requested that I send an email to your mailing list. Hope this helps debug this behavior somehow.
>>> 
>>> Thank you!
>>> 
>>> -- 
>>> Best,
>>> Sara
>>> 
>>> http://sarasoueidan.com
>>> @SaraSoueidan
>> 
> 
> The information contained in this email message and any attachments may be confidential and may also be the subject to legal professional privilege. If you are not the intended recipient, any use, interference with, disclosure or copying of this material is unauthorised and prohibited. If you have received this email in error, please immediately advise the sender by return email and delete the information from your system.

Received on Friday, 8 August 2014 13:09:21 UTC