MCPcopy Create free account
hub / github.com/codemistic/Web-Development / checkBoxes

Function checkBoxes

scroll animation/script.js:7–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5checkBoxes()
6
7function checkBoxes(){
8 const triggerBottom = window.innerHeight / 5 * 4
9
10 boxes.forEach(box => {
11 const boxTop = box.getBoundingClientRect().top
12
13 if(boxTop < triggerBottom){
14 box.classList.add('show')
15 }else{
16 box.classList.remove('show')
17 }
18 })
19}

Callers 1

script.jsFile · 0.85

Calls 1

removeMethod · 0.80

Tested by

no test coverage detected