As often as I've seen this question in the past n years (for some n > k) I'd
have to resurrect the suggestion that scaling and rotation relative to the
center be added to the spec:

transform="scale(2, centroid)" or transform="rotate(90, BBCenter)" , or
something like it, just oughta make sense.

 

In the meantime, see
http://www.w3.org/Graphics/SVG/IG/resources/svgprimer.html#multiple  for the
basics and

http://srufaculty.sru.edu/david.dailey/svg/newstuff/transformRotate1.svg
for doing it with animateTransform.

 

additive="sum" is the magical key that unlocks the door!

 

I hope this helps

 

Cheers

David

 

 

From: [email protected] [mailto:[email protected]]
On Behalf Of gjella
Sent: Tuesday, January 24, 2012 7:17 AM
To: [email protected]
Subject: [svg-developers] Scaling from center point of element

 

  

Hi!

I'm having trouble scaling a g-tag from center point. The item will grow
right/bottom, but I need to scale the element from its center point, growing
in all directions. 

I'm using the animateTransform for scaling:
<animateTransform attributeName="transform" attributeType="XML" type="scale"
from="1" to="1.5" dur="3s" fill="freeze"/> 

I've read scaling from center point is not supported in SVG, but I refuse to
believe this is true. Up to now I have compensated the bottom/right
positioning with an additional translate-animation, but this is nasty :/.

Anyone done this?





[Non-text portions of this message have been removed]



------------------------------------

-----
To unsubscribe send a message to: [email protected]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
----Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/svg-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Reply via email to