Text Effects
Original demo by Vincent Hardy, published September 25, 2010.
Open Text Effects in the gallery
SVG text is usually handled a line at a time, but this demo animates it letter by letter. It runs through nine named effects, including a color swipe, a whip, bouncing letters, wiggling, flips, a shuffle and a zoom.
Every effect starts the same way. The script asks the browser for the position of each character with getStartPositionOfChar, creates a separate text element per glyph at that spot, and hides the source line. The letters still read as a sentence, but each can now be moved on its own. A chain of slightly offset animations gives each effect its wave of motion.
The effects library is the original CC0 code, unchanged at its original script path. The page and the script that sequenced the effects carried a reserved-rights notice, so they are not republished. Both were written again, independently, for this version. The proverbs became new lines, the GoodDog web font became a system handwriting stack, and the music track became short phrases synthesized in the browser after a click.
The new page has start and replay buttons, keyboard control, a reduced motion mode that shows each effect at rest, and a layout that fits narrow screens. Because the font now depends on the system, letter shapes differ slightly between devices.
This note was newly written for the reconstruction. Read the original post in the Internet Archive.
Topics: YUI, Text, Animation, Interactive