Skip to content

Commit

Permalink
reduction of interval time and addition of 5 extra spheres to render
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinXCVI committed Sep 24, 2024
1 parent fb1cc94 commit 63b7f4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ function App() {
moveSpheres()
const interval = setInterval(()=> {
moveSpheres()
}, 5000)
}, 3500)
return ()=> clearInterval(interval)
}, [moveSpheres])

const renderSpheres = () => {
return Array.from({ length: 40 }).map((_, index) => (
return Array.from({ length: 45 }).map((_, index) => (
<div
key={index}
ref={(sphere) => setSphereRef(sphere, index)}
Expand Down

0 comments on commit 63b7f4e

Please sign in to comment.