1.0.3 • Published 4 years ago

y-shadow-box v1.0.3

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

y-shadow-box.js A JavaScript library to style your box outter border with shadow. the box can be any HTML tag e.g img, div as logn as the tag has the class attribute 'shadowbox'

How it Works 1- install the lib as npm dependency by running this on your terminal npm install shadowbox 2- add the the class name class ="shadowbox" to the selected tag/tages, e.g.. <img src="https://picsum.photos/200/300" class="shadowbox" alt"logo"/> 3-import the lib at the top of your js file import {shadowbox} from 'y-shadow-box' 4-write this snipet in your code

shadowbox({
    shadow_type: 'soft', //default
    shadow_color:'rgba(0,0,0,0.3)', //default or(add your own rgba value)
    padding: false, //default or (toggle to true to set 1em padding or specify your value)
    margin: false  // default or (toggle to true to set 1em margin or specify your value)
}) 

acceptance value for shadowbox boject

bool
string
1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago