HEX
Server: LiteSpeed
System: Linux linux31.centraldnserver.com 4.18.0-553.83.1.lve.el8.x86_64 #1 SMP Wed Nov 12 10:04:12 UTC 2025 x86_64
User: salamatk (1501)
PHP: 8.1.33
Disabled: show_source, system, shell_exec, passthru, exec, popen, proc_open
Upload Files
File: /home/salamatk/takarzan.ir/wp-content/themes/xts-luman/js/scripts/animations.js
/* global xts_settings */
(function($) {
	XTSThemeModule.$document.on('xtsElementorSectionReady xtsElementorColumnReady xtsElementorGlobalReady', function() {
		XTSThemeModule.animations();
	});

	XTSThemeModule.animations = function() {
		if (typeof ($.fn.waypoint) === 'undefined') {
			return;
		}

		$('[class*="xts-animation"]').each(function() {
			var $element = $(this);

			if ('inited' === $element.data('xts-waypoint') || $element.parents('.xts-autoplay-animations-off').length > 0) {
				return;
			}

			$element.data('xts-waypoint', 'inited');

			$element.waypoint(function() {
				var $this = $($(this)[0].element);

				var classes = $this.attr('class').split(' ');
				var delay = 0;

				for (var index = 0; index < classes.length; index++) {
					if (classes[index].indexOf('xts_delay_') >= 0) {
						delay = classes[index].split('_')[2];
					}
				}

				$this.addClass('xts-animation-ready');

				setTimeout(function() {
					$this.addClass('xts-animated');
				}, delay);
			}, {
				offset: '90%'
			});
		});
	};

	$(document).ready(function() {
		XTSThemeModule.animations();
	});
})(jQuery);