1.0.0 • Published 4 years ago

saddwiar v1.0.0

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

#installation

npm i saddwiar --save

Then...

... function saddwiar(option){ let image = document.querySelectorAll('.saddwiar');

if(option.shadow_type === 'hard'){
    option.shadow_type = '0px';
}
else{
    option.shadow_type = '15px';
}

image.forEach(image=>{
    image.style.boxShadow = `10px 10px ${option.shadow_type} 1px rgba(0,0,0,12)`;

    if(option.padding){
        image.style.padding = '1em';
    }
})

} ...