增加后台功能
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
(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);
|
||||
Reference in New Issue
Block a user