Create shadows with ease.
npm i -g proshadow
First, create a index.html file.
Then, create a img tag, with a class of pshadow
.
Link the script you want to use.
In the script, enter the following code.
import { pshadow } from 'proshadow';
pshadow ({
shadow_type: 'soft',
padding: true
})
The code above shows that the image is going to havea soft shadow, with some padding.
We currently support two options.
shadow_type
which can either be hard
or soft
and
padding
which can be true
or false
.
You can run this using any compiler, however, for this demo, I am going to be using parcel
.
Downloading Parcel:
npm i -g parcel
Then
parcel index.html[or any other html file]
That's it!!! Feel free to make a pull request, or update the package to make it better.