Search the web
Sign In
New User? Sign Up
svg-developers · SVG Developers
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
circular animation   Message List  
Reply | Forward Message #62543 of 63018 |
Re: [svg-developers] Re: circular animation

Some months ago I asked a similar question about the drawing of curves in real
time, and someone pointed me to an example at carto.net that also animated the
dash-offset. I was trying to do something like this:
http://srufaculty.sru.edu/david.dailey/svg/followpath13.svg
at the time (ultimately trying to simulate the pseudo-random growth of trees). I
don't remember the thinking at the time, but I remember working with a clip-path
to do part of it and running into some problems. I recall that Erik D. suggested
using a mask instead of a clip-path and that worked fairly well, so you may want
to keep masks in mind as an alternative to clip-paths.

I also recall that IE and Opera differ in terms of their animation of dash-array
-- Opera, as I recall, agrees with the spec and doesn't allow negative numbers
for the startOffset of a dash-array. See
http://srufaculty.sru.edu/david.dailey/svg/SVGOpen2008/textPath1.svg and
http://srufaculty.sru.edu/david.dailey/svg/newstuff/textpath1.svg for
comparison.

With just circles, Francis' suggestion of animating a clipPath seems quite
doable, and not as kludgy as you might think:

I would probably use an arc inside the clipPath and animate the angle (through
SMIL) so that the arc extends gradually from 0 to 360 degrees, unveiling the
circle as it goes.

In the case of bezier curves, it's a bit trickier, I think.

cheers
David





----- Original Message -----
From: cwflamont
To: svg-developers@yahoogroups.com
Sent: Wednesday, July 08, 2009 12:15 PM
Subject: [svg-developers] Re: circular animation





Thanks, Francis. I will study your script. It will provide enlightenment as I
have not used clipping paths before.

However, as I said, in this instance I am looking for a solution using
declarative animation rather than scripting. It seems to me to be such a simple
and obvious thing to want to do (animating the drawing of a circle), that it
must surely be possible to do it with SMIL in a more straightforward way than my
cludge?





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




Wed Jul 8, 2009 11:13 pm

ddailey@...
Send Email Send Email

Forward
Message #62543 of 63018 |
Expand Messages Author Sort by Date

The code below shows a way to animate the drawing of a circle. It works after a fashion, but I don't like it: - It is pushing stroke-dasharray to do something...
cwflamont
Offline Send Email
Jul 7, 2009
12:05 am

Hi Charles, Try to animate a clipPath for the circle. Francis...
Francis Hemsher
fhemsher
Offline Send Email
Jul 7, 2009
11:00 am

... Hi again, Charles, Sorry, I didn't have the time earlier today to include an example. Below is an example using Javascript in IE/ASV. <?xml version="1.0"...
Francis Hemsher
fhemsher
Offline Send Email
Jul 8, 2009
7:27 am

Thanks, Francis. I will study your script. It will provide enlightenment as I have not used clipping paths before. However, as I said, in this instance I am...
cwflamont
Offline Send Email
Jul 8, 2009
4:16 pm

... OK, good luck. Declarative animation never has satisfied my need for dynamic SVG. If you get into the clipPath and understand how it can work, then you may...
Francis Hemsher
fhemsher
Offline Send Email
Jul 8, 2009
6:19 pm

Some months ago I asked a similar question about the drawing of curves in real time, and someone pointed me to an example at carto.net that also animated the...
ddailey
ddailey@...
Send Email
Jul 8, 2009
11:16 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help