color-highlight-husniddin
v1.1.1
Published
render color-highlight for learn npm
Downloads
12
Maintainers
Readme
color Highlight
using
<div class="d-flex justify-content-center">
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
</div>
<script type = "module" src="./main.js"></script>
body {
background-color: #292121;
height: 100vh;
display: grid;
place-items: center;
}
.box {
width: 100px;
height: 100px;
border-radius: 10px;
background-color: #464343;
margin: 10px;
transition: 1s;
display: flex;
justify-content: center;
align-items: center;
color: #fff;
}
import { colorHighlight } from "./main.js";
const boxes = document.querySelectorAll(".box");
colorHighlight(boxes);