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/title.js
! function( $ ) {
	"use strict";

	Codevz_Plus.title = function() {

		// Fancy title animation.
		$( '[class*="codevz-fancy-"]' ).not( 'codevz-fancy-done' ).each( function() {

			var $this = $( this ),
			speed = parseFloat( $this.attr( 'data-fancy-speed' ) ) || 500,
			delay = parseFloat( $this.attr( 'data-fancy-delay' ) ) || 0,
			strings = $this.find( '.cz_wpe_content > *' ),
			isWords = $this.hasClass( 'codevz-fancy-words' ),
			isLetters = $this.hasClass( 'codevz-fancy-letters' ),
			words;

			$this.addClass( 'codevz-fancy-done' );

			strings.each( function() {

				var $this = $( this );

				if ( isWords ) {
					words = $this.text().split( ' ' );

				} else if ( isLetters ) {
					words = $this.text().split( '' );

				} else {
					words = [ $this.text() ];
				}

				$this.empty().html( function() {

					for (var i = 0; i < words.length; i++) {

						$( this ).append( ( i == 0 ? '' : ' ' ) + '<span>' + words[i] + '</span>');

					}

				});

			});

			strings.find( '> span' ).each( function( i ) {

				var $this = $( this );

				setTimeout( function() {

					$this.attr( 'data-speed', speed ).addClass( 'codevz-start-fancy' );

				}, delay );

				delay += speed;

			});

		});

	};

	Codevz_Plus.title();

}( jQuery );