// ------------------------------------------------------------------------------------------- // avia image hotspots // ------------------------------------------------------------------------------------------- (function($) { "use strict"; $.fn.aviahotspots = function( options ) { if(!this.length) return; return this.each(function() { var _self = {}; _self.container = $(this); _self.hotspots = _self.container.find('.av-image-hotspot'); _self.container.on('avia_start_animation', function() { settimeout(function() { _self.hotspots.each(function(i) { var current = $(this); settimeout(function(){ current.addclass('av-display-hotspot'); },300 * i); }); },400); }); }); }; }(jquery));