pushkar_shadowizard
v1.0.0
Published
Add awesome shadows
Downloads
5
Readme
#What is this?
Get perfect shadows
Installation
npm i pushkar_shadowizard --save
function shadowizard(options) {
let images = document.querySelectorAll('.shadowizard');
if (options.shadow_type === 'hard') {
options.shadow_type = '0px';
} else {
options.shadow_type = '15px';
}
images.forEach(image => {
image.style.boxShadow = `10px 10px ${options.shadow_type} 1px rgba(0,0,0,0.12)`;
if (options.padding) {
image.style.padding - '1em';
}
})
}
- shadow_type - hard | soft
- padding - boolean