--- In [email protected], "Chethan K.R" <chethan...@...> wrote: > > I wanted to animate alphabets every 2 secs.What i could learn from browsing > internet on svg is to have seperate text element for each alphabet. I don't > want to use any script. > I am looking for something like array of text { A, B, C, D,....} and one > single text element to animate the alphabets taking each one from the array.
Would this do the job for you: http://wwwpub.zih.tu-dresden.de/~s9783698/animateText.xml As code: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd"> <svg version="1.1" baseProfile="tiny" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 240 289"> <defs> <clipPath id="glyphClip"> <rect width="100" height="289"/> </clipPath> </defs> <g clip-path="url(#glyphClip)"> <g transform="translate(0,150)"> <text id="A" font-size="125" fill="#5382A1" x="0,200,400,600" >ABCD<animateTransform attributeType="XML" attributeName="transform" >type="translate" dur="15" calcMode="discrete" fill="freeze" values="0;-100;-200;-300;-400;-500;-600;-700,0"/> </text> </g> </g> </svg> What it does: The letters are positioned 200 units apart (with x="0,200,400,600"). The text is shown in a clipping rectangle so that only one (or no) letter is visible at a time. The animation moves the text string left in steps of 100 units so that on every second animation phase a new letter becomes visible. Thomas W. ------------------------------------ ----- 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/

