Colorful shadows for your images. 🎨
cosha lets you add colorful shadows to your images. Try it out and look for yourself—the bundle is less than 1kb small and it really couldn't be easier to set up!
yarn add cosha
<!-- on an img tag --><!-- on a picture tag -->
Alternatively, if that module bundler stuff isn't for you, you can get it directly from
Everything in the config is optional. You can also use it by just calling
cosha(). The default values are:
It runs in every browser except Internet Explorer. This is because of missing support for CSS
filter properties. In case cosha detects it's running in a browser that doesn't have
NodeList.prototype.forEach available, which at this point is only IE <= 11, it simply doesn't do anything.