1.1.0 • Published 3 years ago

proshadow v1.1.0

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

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. bashadow_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.

1.1.0

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago