//JavaScript Document $(document).ready(function() { var t, o = ($(document), $(window)), i = $(".ovg_scroll"), c = o.height(), e = function() { var o = $(this).offset().top; return ! (t > o + $(this).outerHeight() + 50 || o - c > t) }; o.on("scroll.vgo", function() { t = o.scrollTop(), i.each(function() { e.call(this) && $(this).addClass("scroll_animation").children().each(function() { e.call(this) && $(this).addClass("active_animation") }) }) }).on("resize.vgo", function(t) { c = o.height(), o.trigger("scroll.vgo") }).trigger("scroll.vgo") });