blob: 2210b4beffc1efbbb935b03e13c49ec819340181 [file] [log] [blame]
(function() {
$(document).ready(function() {
var timelineAnimate;
timelineAnimate = function(elem) {
return $(".timeline.animated .timeline-row").each(function(i) {
var bottom_of_object, bottom_of_window;
bottom_of_object = $(this).position().top + $(this).outerHeight();
bottom_of_window = $(window).scrollTop() + $(window).height();
if (bottom_of_window > bottom_of_object) {
return $(this).addClass("active");
}
});
};
timelineAnimate();
return $(window).scroll(function() {
return timelineAnimate();
});
});
}).call(this);