loot box landing page
parent
075dea23d3
commit
742d949520
@ -0,0 +1,9 @@
|
||||
const container = document.getElementById('container')
|
||||
|
||||
const box = document.createElement('div')
|
||||
box.classList.add('box')
|
||||
container.appendChild(box)
|
||||
|
||||
window.addEventListener('mousemove', (e)=>{
|
||||
box.style.transform = `translate(${e.clientX}px, ${e.clientY}px) translate(-50%, -50%)`
|
||||
})
|
Loading…
Reference in New Issue