A peek to Sarah Drasner's workshop @sdras : codepen
Default attribute: preserveAspectRatio ="xMidYMid meet"
xMidYMid meet
xMinYMin meet
xMaxYMax meet
xMinYMin slice
xMidYMid slice
xMaxYMax slice
none
Aria support charts and this article by Heather Migliorisi
1. Illustrator
2. Delete unnecessary shapes
3. Divide objects
4. Name layers
5. Export to SVG
1. Inline style
2. SVG
3. Layer Names
4. No minify (for now)
5. Responsive (optional)
6. Show code
1. SVGO
2. SVGOMG
Animation inside the SVG:
- img src
- object / iframe / embeded
- background url
- xlink
Animation and interaction:
- inline
Special properties & removing markups
Responsive images
- Great for UI/UX animation
- Resolution and PPI independent
- Easier to debug
- Pixels dance!
- Great for really impressive 3d or immersive stuff
- Movement of a tons of objects
- Slow with a lot of objects
- Care about the way to animate
- Not accessible
- Not resolution PPI independent
- Easy to break
- Small sequences and simple interactions
- Once you get more than 3, switch to something else...
- Great for sequencing and complex movement
- Cross-browser consistency
- Snap.svg is more like jQuery for SVG
- Web Animations API looks great, still waiting on support
- Velocity is similar to GSAP with less bells and whistles
- Mo.js looks great and is still in beta
- D3.js was built for data vis but you can do a lot more with it
- Spirit app js animation saved in JSON
- Popmotion javascript library to animate
CSS Layout Painting and Composite tables
Source: Sarah Drasner
Source: Sarah Drasner
A peek to Sarah Drasner's workshop @sdras : codepen