var item = $('.card');
var pageLoaded = false;
var waypoints = item.waypoint(function(direction) {
if($('.content').css('display') !== 'block'){
console.log('yes it did fire here');
$(this).addClass("animated doneAnimated" + (pageLoaded ? " fadeInUp" : ""));
}
}, {
offset: '90%'
});
pageLoaded = true;
Above code worked in jquery, but I switching to zepto. I don't know why $(this) in zepto is something else. How to write in pure js to make the code work?