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

On 8/08/2014 11:08 PM, Dirk Schulze wrote:
> 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. :/


How about an animation origin attribute that can be set to a specific
co-ordinate, or could be set to some keyword that will use the center
point of the bounding box of the object?
This would just be a more author friendly way of setting the translation.

>
>
>> 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.

The issue was the last quotation mark in Dmitry's fix.
I pasted it straight in and didn't notice it was a fancy closing
quotation rather than just a standard dumb quotation.

What FF was doing makes sense now =)


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 Monday, 11 August 2014 00:20:13 UTC