Skip to content

Commit 259c95a

Browse files
author
molty3000
committed
fix: fade-in animations apply inline styles directly
1 parent fedf927 commit 259c95a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

docs/index.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,10 @@ <h2>Configuration</h2>
460460
// Fade-in animation on scroll
461461
const observer = new IntersectionObserver((entries) => {
462462
entries.forEach(entry => {
463-
if (entry.isIntersecting) entry.target.classList.add('visible')
463+
if (entry.isIntersecting) {
464+
entry.target.style.opacity = '1'
465+
entry.target.style.transform = 'translateY(0)'
466+
}
464467
})
465468
}, { threshold: 0.1, rootMargin: '0px 0px -40px 0px' })
466469

0 commit comments

Comments
 (0)