Examples/AnimatedShapes.PSSVG.ps1
SVG @( $animationSettings = [Ordered]@{ Dur = '2s' RepeatCount = 'indefinite' } SVG.circle -CX 25 -CY 25 -r 10 -Fill '#4488ff' @( SVG.animate -values '1;10;1' -AttributeName r @animationSettings ) SVG.rect -X 0 -Y 50 -Width 50 -Height 50 -Fill '#4488ff' @( SVG.animate -values '0;50;0' -AttributeName width @animationSettings SVG.animate -values '50;0;50' -AttributeName height @animationSettings ) SVG.ellipse -Cx 25 -Cy 100 -Rx 10 -Ry 5 -Fill '#4488ff' @( SVG.animate -values '10;1;10' -AttributeName rx @animationSettings SVG.animate -values '5;10;5' -AttributeName ry @animationSettings ) ) -ViewBox 0, 0, 100, 150 -OutputPath (Join-Path $psScriptRoot AnimatedShapes.svg) |