Very wel organized, and huge
Tag: svg
tympanus.net/codrops
Codrops is a web design and development blog that publishes articles and tutorials about the latest web trends, techniques and new possibilities. The team of Codrops is dedicated to provide useful, inspiring and innovative content that is free of charge.
Styling SVG <use> Content with CSS
Takeaway:
Use css variables (or custom properties) to get access to the svg in the shadow DOM.
https://caniuse.com/#feat=css-variables
Example:
Read Moreflag-icon-css
A collection of all country flags in SVG — plus the CSS for easier integration.
Source: flag-icon-css
Fix for ‘text scale animation cause font to blur’
text scale animation cause font to blur – posted in GSAP: When using Chrome the text is blurred during the animation and then at the end the text snaps clear and normal. Does not do that with Firefox or Edge. How do I get rid of the blur when viewing with Chrome. Thank you, Kv2
Source: text scale animation cause font to blur – GSAP – GreenSock
It’s a common Chrome bug.
Adding
CSSPlugin.defaultForce3D = false;
to your Javascript file will fix it.
//
You might also find this post helpful: http://greensock.com…ted/#entry36948
clouds with GSAP
Source: clouds
Exporting SVG from Ilustrator
Update:
Export artboard to SVG ‘for web’.
- Save as, use artboard
- Choose ‘try’ to export for web
- Choose options
- Careful when choosing ‘responsive’: it somehow adds vector parts that are outside the artboard area to the svg.
SVG profiles
SVG 1.0: all modern desktop and mobile browsers support SVG 1.1, so never choose this option.
SVG 1.1: You will almost always want this.
SVG Tiny/Basic: this is a subset of SVG intended for mobile devices. Only a handful of devices support SVG Tiny and not the full spec, so go for SVG 1.1.
d3js/SVG Export demo
This website demonstrates one possible method of saving d3js graphics to PDF.
Click “view source” on above website to see the client-side code. It is heavily documented.
The server-side code is a bare-bones Perl/CGI script.. It basically runs rsvg-convert
and returns the result as an attachment to download. You can implement the same functionallity in any programming language.
The entire code is available on GitHub