Shadoww is a library that allows you to add box shadows to any element without styling.
npm i shadoww --save
Ready to get started? Let's go!
First add the following line:
import { shadoww } from 'shadoww';
You are ready! To use the library, go into your html code, and add a classname of shadoww
to the images you want to add the shadow to.
Example:
<img src="test.png" class="shadoww">
Now to use the library, add the following to your js:
shadoww({
shadow_type: 'soft',
padding: true
})
Change
soft
to hard
to get hard shadows, and change padding: true
to false
to disable padding.
Hope you enjoy the extension!!!