Done !
| Server IP : 46.105.57.169 / Your IP : 216.73.216.67 Web Server : Apache System : Linux webm002.cluster120.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : verseaumee ( 152031) PHP Version : 8.5.7 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/verseaumee/blueversionx/wp-content/plugins/trx_addons/components/shortcodes/icons/ |
Upload File : |
/**
* Shortcode Icons
*
* @package ThemeREX Addons
* @since v1.4
*/
/* global jQuery, TRX_ADDONS_STORAGE */
// Init handlers
jQuery(document).on( 'action.init_hidden_elements', function(e, container) {
"use strict";
var time = 50;
container.find('.sc_icon_type_svg.sc_icon_animation:not(.inited)').each(function(idx) {
var cont = jQuery(this);
var id = cont.addClass('inited').attr('id');
if (id === undefined) {
id = 'sc_icons_'+Math.random();
id = id.replace('.', '');
} else {
id += '_'+idx;
}
cont.find('svg').attr('id', id);
setTimeout( function(){
cont.css('visibility', 'visible');
var obj = new Vivus( id, {
type: 'async',
duration: TRX_ADDONS_STORAGE['sc_icons_animation_speed']
? TRX_ADDONS_STORAGE['sc_icons_animation_speed']
: 50
}
);
cont.data('svg_obj', obj);
cont.parent().hover(
function() {
cont.data('svg_obj').reset().play();
},
function() {
}
);
}, time);
time += 300;
});
});