I have this code for JQuery:-
$('.ro-news-n img').addClass('no-display');
$('.ro-news-n img').one('inview', function() {
$(this).addClass('appear');
});
This code for hide any image in class .ro-news-n
and show it when scroll page down.
Its add class no-display for <img>
attribute and when scroll its add appear class to show it.
The problem is when open site its add class no-display to <img>
attribute. but when scroll its not add appear class to it.
why