1.0.4 • Published 4 years ago

shadowcomp v1.0.4

Weekly downloads
13
License
MIT
Repository
github
Last release
4 years ago

What is this?

Get perfect shadows every time for non-designer.

Installation

npm i shadowcomp --save

Usage

import { shadowComponent } from 'shadowcomp';

shadowComponent({
    shadow_type: 'soft',
    padding: false
});

OR

import { shadowComponent } from 'shadowcomp';

const shadowOptions = {
    shadow_type: 'soft',
    padding: true
};
shadowComponent(shadowOptions);

In HTML add the class bashadowComp to the desired image and you will get the shadow.

Options

ShadowComponent supports 2 options, both of which are optional:

  • shadow_type - hard | soft (Default set to soft)
  • padding - boolean (Default set to false)

Demo

Demo Link: https://imgur.com/8rSc6Fv

1.0.2

4 years ago

1.0.1

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.0

4 years ago