Commit 79c9c3a3 authored by HungTQ's avatar HungTQ

feat(ui): brighten portfolio and replay scroll reveals

parent f29da1d7
This diff is collapsed.
......@@ -131,11 +131,12 @@ function App() {
entries.forEach((entry) => {
if (entry.isIntersecting) {
entry.target.classList.add('is-visible')
observer.unobserve(entry.target)
} else {
entry.target.classList.remove('is-visible')
}
})
},
{ threshold: 0.18 },
{ rootMargin: '0px 0px -12% 0px', threshold: 0.16 },
)
revealItems.forEach((item) => observer.observe(item))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment