Skip to content

AkkiSeven/proshadow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

Create shadows with ease.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published