Tambahkan kelas saat elemen di viewport vanilla javascript
window.addEventListener('scroll', function (event) {
if (isInViewport(theElementToWatch)) {
// update the element display
}
}, false);
code fighter