Skip to content

Instantly share code, notes, and snippets.

@michaelwilhelmsen
Created July 11, 2014 10:58
Show Gist options
  • Select an option

  • Save michaelwilhelmsen/a904427e06d29bcd21d7 to your computer and use it in GitHub Desktop.

Select an option

Save michaelwilhelmsen/a904427e06d29bcd21d7 to your computer and use it in GitHub Desktop.
Dynamic Shadow for images with transparency using filters
.png-image {
-webkit-filter: drop-shadow(12px 12px 25px rgba(0,0,0,0.5));
filter: url(#drop-shadow);
-ms-filter: "progid:DXImageTransform.Microsoft.Dropshadow(OffX=12, OffY=12, Color='#444')";
filter: "progid:DXImageTransform.Microsoft.Dropshadow(OffX=12, OffY=12, Color='#444')";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment