HEX
Server: LiteSpeed
System: Linux server.nevid-deploma.com 4.18.0-553.111.1.lve.el8.x86_64 #1 SMP Fri Mar 13 13:42:17 UTC 2026 x86_64
User: smilepac (1037)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: /home/smilepac/public_html/wp-content/plugins/codevz-plus/wpbakery/assets/js/team.js
! function( $ ) {
	"use strict";

	Codevz_Plus.team = function() {

		const handleTeamHover = (e) => {
			const container = e.currentTarget;
			const content = container.querySelector('.cz_team_content');
			if (!content) return;

			if (e.type === 'mouseenter') {
				content.style.display = 'block';
				content.style.pointerEvents = 'none';
				content.style.position = 'absolute';
				content.style.top = '0';
				content.style.left = '0';
				content.style.transition = 'all .3s cubic-bezier(.180, .890, .330, 1.270)';

				setTimeout(() => content.style.opacity = '1', 100);
			}

			if (e.type === 'mousemove') {
				const rect = container.getBoundingClientRect();
				const x = e.clientX - rect.left;
				const y = e.clientY - rect.top;

				requestAnimationFrame(() => {
					content.style.transform = `translate3d(${x - 5}px, ${y}px, 0)`;
				});
			}

			if (e.type === 'mouseleave') {
				setTimeout(() => {
					content.style.opacity = '0';
				}, 100);
			}
		};

		const initTeamHover = () => {
			document.querySelectorAll('.cz_team_6, .cz_team_7').forEach(el => {
				if (el.dataset.initHover) return;
				el.dataset.initHover = '1';

				el.addEventListener('mouseenter', handleTeamHover);
				el.addEventListener('mousemove', handleTeamHover);
				el.addEventListener('mouseleave', handleTeamHover);
			});
		};

		initTeamHover();

	};

	Codevz_Plus.team();

}( jQuery );