更新时间:2021-07-23 16:56:39
封面
Title Page
Copyright and Credits
Mastering SVG
PacktPub.com
Why subscribe?
Contributors
About the author
About the reviewer
Packt is searching for authors like you
Preface
Who this book is for
What this book covers
To get the most out of this book.
Download the example code files
Download the color images
Conventions used
Get in touch
Reviews
Introducing Scalable Vector Graphics
Creating a simple SVG image
Using SVG as a content image
Drawing with code
Scalable + vector graphics
Using SVG in CSS
Gradients in SVG
Directly embedding SVG in an HTML document
Feature detection and Modernizr
Summary
Getting Started with Authoring SVG
Positioning in SVG
viewBox and viewport in SVG
Introducing paths
More on basic shapes
The line element
The ellipse element
The polygon element
The polyline element
More on fills and strokes
stroke-dasharray
stroke-dashoffset
stroke-linecap
stroke-linejoin
stroke-opacity
linearGradient and radialGradient
The pattern element
Authoring programs
Digging Deeper with SVG Authoring
Transformations
translate
scale
rotate
skew
Clipping and masking
Clipping
Masking
Importing images into SVG
Filters
Serving SVG on the web
Apache
nginx
IIS
Using SVG in HTML
SVG HTML and accessibility
SVG as an image src
Inline SVG
SVG and responsive web design
The srcset attribute
The srcset and sizes attributes
The picture element
Additional details on inline SVG in an HTML document
Caching
Complexity
Authoring
The Document Object Model
Working with SVG and CSS
CSS background images
Data URLs for SVG background images
SVG sprites and icon sets
Styling inline SVG
Using common CSS properties to manipulate SVGs
Basic font properties
Text properties
Miscellaneous CSS properties
Using SVG-specific CSS properties to manipulate SVGs
Color and painting properties
Stroke properties
Compositing properties
Interactivity properties
Styles in standalone SVG images
Basic CSS animations and transitions with SVG
CSS animations
Basic animation format
Animating a clip path
Animating multiple properties and assigning multiple animations to an element