
| Current Path : /var/www/html/german-vocational.cn/themes/topplus_lite/js/init/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/german-vocational.cn/themes/topplus_lite/js/init/waypoints-animations-init.js |
(function ($, Drupal) {
Drupal.behaviors.mtWaypointsAnimations = {
attach: function (context, settings) {
$("body:not(.path-admin) [data-animate-effect]", context).once('mtWaypointsAnimations').each(function() {
var thisObject = $(this);
var animation = thisObject.attr("data-animate-effect");
if(animation != "no-animation") {
var waypoints = thisObject.waypoint(function(direction) {
var animatedObject = $(this.element);
setTimeout(function() {
animatedObject.addClass("animated " + animation);
animatedObject.removeClass("mt-no-opacity");
}, 100);
this.destroy();
},{
offset: "90%"
});
}
});
}
};
})(jQuery, Drupal);