YUI SVG Animations Test Page

This page tests animating the SVG attributes and properties with the YUI SVG extensions created for the SVG Wow! web site.

There are some browser limitations. For example, WebKit browsers (as of Safari 5.0 and Chrome 6.0) do not support animating gradient stop colors or properties on <use> elements.

Transform animations

Click on shape labels to start animations

translate rotation scale tx/ty/rotation/scale custom transform template

Shape animations

Click on shape labels to start their animations.

<rect> x / y / width / height <circle> cx / cy / r <line> x1 / x2 / y1 / y2 <ellipse> cx / cy / rx / ry A <text> x / y ABC <tspan> dx / dy

Path animations

Click on each path label to see it animate.

Different path commands L Q C HV T S A Morphing shapes

Filter animations

Click on the 'Blur us!' label to start the animation.

Blur us!

Stroke animations

Click on the stroke property labels to start the animations.

stroke-opacity stroke stroke-width stroke-dashoffset

Time offsets

Click on first rectangle's label to see onBegin/onEnd handlers called with no delay, 1s, 2s and 3s delays. Click on the "begin" text to start animation on the second rectangle or on the 'begin+1s" text to start it with a 1s delay. When the animations are started, click on the 'end' text to end the animation immediately or on 'end+1s' to end it after a 1s delay.

The dark gray rectangle's aninmation is synchronized with the black rectangle's animation. The light gray rectangle's animation is synchronized with the black rectangle's animation, but with a 1s delay.

Click on any of the white dots to start a cascade of animations.

onBegin-onEnd with/without offset trace: -- beginOn-endOn with/without offset begin|end|begin+1s |end+1s

Paint animations

Click on the labels to start the animations.

fill-opacity stop-opacity stop-color gradient offset gradient geometry