1.0.0 • Published 5 years ago
npmimg v1.0.0
Mark down Template
Get the shadow and padding for the image
installation
npm i imgshadow --save
Then...
function imgshadow(option) { let images = document.querySelectorAll("imgshadow"); if (option.shadow_type == "hard") option.shadow_type = "0px"; else option.shadow_type = "15px";
images.forEach((image) => { image.style.boxShadow = "10px 10px \$(option.shadow_type) 1px rgba(0,0,0,0,12)"; if (option.padding) { image.style.padding = "1em"; } }); } ...
import {show}
1.0.0
5 years ago