pdp-b-18-husniddin
v1.0.0
Published
for learning npm
Downloads
2
Maintainers
Readme
IMG LOADER
install
npm install pdp-b-18
using
import { imgLoading } from "pdp-b-18";
const element = document.getElementById("img-wrapper");
const btn = document.getElementById("load-img-btn");
const imgURL =
"https://encrypted-ttatic.com/images?q=tbn:ANd9GcQgMqFgaGVGRBv0XVpDNPo_3mCruXsEbXwSag&usqp=CAU";
btn.addEventListener("click", () => imgLoading(imgURL, element, 4));