2019 Event Recap

( function( $ ) { $(document).ready(function() { setTimeout(function(){ $('body').addClass('loaded'); stepTrigger(); }, 500); $(window).scroll(function(){ setTimeout(function(){ stepTrigger(); }, 500); }) }); function stepTrigger() { if ($(".box-item").hasClass("hidden") ) { $( ".box-item.hidden" ).each(function(i) { (function(self) { $scrollPosition = $(window).scrollTop() + $(window).height(); $offset = $(self).offset(); $boxTop = $offset.top; if($boxTop <= $scrollPosition) { setTimeout(function(){ $(self).removeClass('hidden'); },(i*500)); } })(this); }) } } }) ( jQuery );