Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
//@source https://codepen.io/joshwcomeau/pen/mdVZKwr
.drop-shadow {
filter: drop-shadow(2px 4px 8px hsla(0deg, 0%, 0%, 0.5))
}
@JulaineScott
Copy link
Author

JulaineScott commented Jul 30, 2020

Will work on transparent images to put the shadow on the image, not the image's artboard. Better than box-shadow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment