proshadow
v1.1.0
Published
Create shadows with ease.
Downloads
6
Readme
Proshadow
Create shadows with ease.
Installation
npm i -g proshadow
Usage
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
.
Running (IMPORTANT!!!)
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]
Conclusion
That's it!!! Feel free to make a pull request, or update the package to make it better.