Dan Eastwell, Web Interface Designer and Developer

Month

May 2012

6 posts

Better CSS Sprites with SVG - Bessere CSS Sprites mit SVG | eleqtriq → eleqtriq.com
May 23, 2012
Using SVG in CSS with JavaScript detection - Broken Links → broken-links.com

Useful modernizr style technique for detecting svg support. It puts an image in the page with a Base64 encoded data-uri SVG element. If that loads, it adds an svg class to the page. 

The script then sets an SVG image as a background in the css using specificity to add a png fallback. 

However, it doesn’t allow for SVG data uris in background images. Maybe I’m doing something wrong, but this doesn’t appear supported in Firefox. http://jsfiddle.net/daneastwell/XSjnx/1/

May 22, 2012
CSS (SVG) Filters → reference.sitepoint.com

See also http://stackoverflow.com/questions/609273/convert-an-image-to-grayscale-in-html-css

May 16, 2012
May 15, 2012
#css #background #image #sprites #:after #pseudo-elements
Doug Schepers (@shepazu) SVG talk → w3.org

Lots of great examples in this talk, all powered by SVG. Saw it at a #Brighton @Skillswap a couple of years ago. So I don’t forget where it is.

May 14, 2012
SVG in background images.

Looking to add, cache, flip, rotate and scale an svg file as a css background image. Here’s a bit of a link dump for me to work on later. It all seems to be in the right area, apologies if you’re looking and it doesn’t come up with the goods:

http://www.broken-links.com/2010/06/08/using-svg-in-background-image/

http://helephant.com/2009/08/12/svg-images-as-css-backgrounds/

http://caniuse.com/#search=svg

http://www.alistapart.com/articles/using-svg-for-flexible-scalable-and-fun-backgrounds-part-ii

http://stackoverflow.com/questions/5768998/how-to-flip-background-image-using-css

http://nicolasgallagher.com/css-background-image-hacks/

http://css-tricks.com/snippets/css/flip-an-image/

http://stackoverflow.com/questions/5087420/how-to-rotate-the-background-image-in-the-container

May 14, 2012
#svg #image #background #rotate #transform #css #scale
Next page →
2012 2013
  • January 7
  • February 3
  • March 6
  • April 1
  • May 5
  • June 4
  • July
  • August
  • September
  • October
  • November
  • December
2011 2012 2013
  • January 20
  • February 25
  • March 21
  • April 2
  • May 6
  • June 3
  • July 8
  • August 7
  • September 11
  • October 7
  • November
  • December 3
2010 2011 2012
  • January 18
  • February 1
  • March 2
  • April
  • May 1
  • June
  • July 7
  • August 1
  • September 5
  • October 14
  • November 10
  • December 1
2009 2010 2011
  • January
  • February
  • March 5
  • April 5
  • May
  • June 6
  • July 9
  • August 4
  • September 12
  • October 13
  • November 11
  • December 1
2008 2009 2010
  • January 28
  • February 26
  • March 13
  • April 7
  • May 5
  • June 5
  • July 3
  • August 1
  • September
  • October
  • November
  • December
2008 2009
  • January
  • February
  • March
  • April
  • May
  • June
  • July
  • August
  • September
  • October
  • November 1
  • December 12