Created
July 30, 2020 21:58
-
-
Save JulaineScott/1bce3da878598a3ec272b1068ee4b572 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//@source https://codepen.io/joshwcomeau/pen/mdVZKwr | |
.drop-shadow { | |
filter: drop-shadow(2px 4px 8px hsla(0deg, 0%, 0%, 0.5)) | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Will work on transparent images to put the shadow on the image, not the image's artboard. Better than box-shadow.