Building Web Applications with SVG - Cdn.oreilly.com
Building Web Applications with SVG - Cdn.oreilly.com
Building Web Applications with SVG - Cdn.oreilly.com
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Chapter 3 Adding Text, Style, and Transforms 59<br />
Adding and Positioning Text .......................................60<br />
The Element .........................................60<br />
The Element .......................................63<br />
Making Adjustments <strong>with</strong> dx and dy ..........................64<br />
Text and Shapes on a Path: and ...........64<br />
The Element .........................................65<br />
Working <strong>with</strong> Colors in <strong>SVG</strong> .......................................66<br />
Named Color Values ........................................66<br />
HSL .......................................................66<br />
RGB .......................................................66<br />
Creating Gradients in <strong>SVG</strong> .........................................67<br />
Applying Gradients to a Path ................................67<br />
Clipping and Masking <strong>with</strong> <strong>SVG</strong> ....................................73<br />
Details of Transforms .............................................77<br />
The translate Command .....................................77<br />
The scale Command ........................................78<br />
Skewing: The skewX and skewY Commands ....................79<br />
The rotate Command .......................................79<br />
The matrix Command .......................................80<br />
Adding Style Using CSS ......................................80<br />
Using Media Queries to Enhance Usability ....................82<br />
Additional Capabilities of CSS3 ...............................83<br />
Vector Graphics, Symbol, and Button Libraries .......................83<br />
Accessibility .....................................................83<br />
Semantic Elements and Features ..............................84<br />
Case Study: A Simple <strong>SVG</strong> <strong>Web</strong> Interface ............................85<br />
Summary .......................................................88<br />
Chapter 4 Motion and Interactivity 89<br />
Declarative Animation <strong>with</strong> <strong>SVG</strong>. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .89<br />
Getting Started .............................................91<br />
Motion Along a Path ........................................95<br />
Contents ix