META-INF.resources.bower_components.vertical-timeline-jwebswing.js.main.min.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jwebmp-vertical-timeline-css Show documentation
Show all versions of jwebmp-vertical-timeline-css Show documentation
The JWebSwing implementation for a CSS Vertical Timeline
The newest version!
jQuery(document).ready(function(d){var a=d(".cd-timeline-block"),e=0.8;b(a,e);d(window).on("scroll",function(){(!window.requestAnimationFrame)?setTimeout(function(){c(a,e)},100):window.requestAnimationFrame(function(){c(a,e)})});function b(g,f){g.each(function(){(d(this).offset().top>d(window).scrollTop()+d(window).height()*f)&&d(this).find(".cd-timeline-img, .cd-timeline-content").addClass("is-hidden")})}function c(g,f){g.each(function(){(d(this).offset().top<=d(window).scrollTop()+d(window).height()*f&&d(this).find(".cd-timeline-img").hasClass("is-hidden"))&&d(this).find(".cd-timeline-img, .cd-timeline-content").removeClass("is-hidden").addClass("bounce-in")})}});