common.js

//Добавляет классы дочерним блокам .block для анимации //Документация: http://imakewebthings.com/jquery-waypoints/ $(".block").waypoint(function(direction) { if (direction === "down") { $(".class").addClass("active"); } else if (direction === "up") { $(".class").removeClass("deactive"); }; }, {offset: 100});
waypoint

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.