Greetings, I am currently delving into the world of Jquery waypoints and facing a bit of challenge getting it to work. My goal is to have an "alert" pop up once an element becomes visible on the screen, but for some reason, the alert doesn't show up when I scroll down. Here's a glimpse of my code.
HTML
<section class="container">
<div class="sixteen columns item"></div>
<div class="sixteen columns item"></div>
<div class="sixteen columns item"></div>
<div class="sixteen columns item"></div>
<div class="sixteen columns item"></div>
<div class="sixteen columns item thing entry" id="example-basic"></div>
</section>
Interestingly, if I place this section above the others, the alert function seems to work just fine.
<div class="sixteen columns item thing entry" id="example-basic"></div>
Javascript
<script>
$('.entry').waypoint(function() {
alert('The element appeared on the screen.');
});
</script>