TanchoToplineCargo/public/sunsari/revolution/js/extensions/revolution.extension.layeranimation.min.js

7 lines
54 KiB
JavaScript
Raw Normal View History

2024-05-05 04:47:49 +00:00
/************************************************
* REVOLUTION 5.4.6.5 EXTENSION - LAYER ANIMATION
* @version: 3.6.5 (10.06.2018)
* @requires jquery.themepunch.revolution.js
* @author ThemePunch
************************************************/
!function(e){"use strict";var A=jQuery.fn.revolution,l=(A.is_mobile(),A.is_android(),{alias:"LayerAnimation Min JS",name:"revolution.extensions.layeranimation.min.js",min_core:"5.4.6.4",version:"3.6.5"});jQuery.extend(!0,A,{updateMarkup:function(e,t){var i=jQuery(e).data();if(void 0!==i.start&&!i.frames_added&&void 0===i.frames){var a=new Array,n=F(B(),i.transform_in,void 0,!1),r=F(B(),i.transform_out,void 0,!1),o=F(B(),i.transform_hover,void 0,!1);jQuery.isNumeric(i.end)&&jQuery.isNumeric(i.start)&&jQuery.isNumeric(n.speed)&&(i.end=parseInt(i.end,0)-(parseInt(i.start,0)+parseFloat(n.speed,0))),a.push({frame:"0",delay:i.start,from:i.transform_in,to:i.transform_idle,split:i.splitin,speed:n.speed,ease:n.anim.ease,mask:i.mask_in,splitdelay:i.elementdelay}),a.push({frame:"5",delay:i.end,to:i.transform_out,split:i.splitout,speed:r.speed,ease:r.anim.ease,mask:i.mask_out,splitdelay:i.elementdelay}),i.transform_hover&&a.push({frame:"hover",to:i.transform_hover,style:i.style_hover,speed:o.speed,ease:o.anim.ease,splitdelay:i.elementdelay}),i.frames=a}if(!i.frames_added){if(i.inframeindex=0,i.outframeindex=-1,i.hoverframeindex=-1,void 0!==i.frames)for(var s=0;s<i.frames.length;s++)void 0!==i.frames[s].sfx_effect&&0<=i.frames[s].sfx_effect.indexOf("block")&&(0===s?(i.frames[s].from="o:0",i.frames[s].to="o:1"):i.frames[s].to="o:0",i._sfx="block"),void 0===i.frames[0].from&&(i.frames[0].from="o:inherit"),0===i.frames[0].delay&&(i.frames[0].delay=20),"hover"===i.frames[s].frame?i.hoverframeindex=s:"frame_999"!==i.frames[s].frame&&"frame_out"!==i.frames[s].frame&&"last"!==i.frames[s].frame&&"end"!==i.frames[s].frame||(i.outframeindex=s),void 0!==i.frames[s].split&&i.frames[s].split.match(/chars|words|lines/g)&&(i.splittext=!0);i.outframeindex=-1===i.outframeindex?-1===i.hoverframeindex?i.frames.length-1:i.frames.length-2:i.outframeindex,i.frames_added=!0}},animcompleted:function(e,t){var i=e.data(),a=i.videotype,n=i.autoplay,r=i.autoplayonlyfirsttime;null!=a&&"none"!=a&&(1==n||"true"==n||"on"==n||"1sttime"==n||r?(("carousel"!==t.sliderType||"carousel"===t.sliderType&&"on"===t.carousel.showLayersAllTime&&e.closest("li").hasClass("active-revslide")||"carousel"===t.sliderType&&"on"!==t.carousel.showLayersAllTime&&e.closest("li").hasClass("active-revslide"))&&A.playVideo(e,t),A.toggleState(e.data("videotoggledby")),(r||"1sttime"==n)&&(i.autoplayonlyfirsttime=!1,i.autoplay="off")):("no1sttime"==n&&(i.datasetautoplay="on"),A.unToggleState(e.data("videotoggledby"))))},handleStaticLayers:function(e,t){var i=parseInt(e.data("startslide"),0),a=parseInt(e.data("endslide"),0);i<0&&(i=0),a<0&&(a=t.realslideamount),0===i&&a===t.realslideamount-1&&(a=t.realslideamount+1),e.data("startslide",i),e.data("endslide",a)},animateTheCaptions:function(e){if("stop"===A.compare_version(l).check)return!1;var p=e.opt,t=e.slide,n=e.recall,i=e.maintimeline,r=e.preset,o=e.startslideanimat,s="carousel"===p.sliderType?0:p.width/2-p.gridwidth[p.curWinRange]*p.bw/2,a=t.data("index");if(p.layers=p.layers||new Object,p.layers[a]=p.layers[a]||t.find(".tp-caption"),p.layers.static=p.layers.static||p.c.find(".tp-static-layers").find(".tp-caption"),void 0===p.timelines&&A.createTimelineStructure(p),p.conh=p.c.height(),p.conw=p.c.width(),p.ulw=p.ul.width(),p.ulh=p.ul.height(),p.debugMode){t.addClass("indebugmode"),t.find(".helpgrid").remove(),p.c.find(".hglayerinfo").remove(),t.append('<div class="helpgrid" style="width:'+p.gridwidth[p.curWinRange]*p.bw+"px;height:"+p.gridheight[p.curWinRange]*p.bw+'px;"></div>');var d=t.find(".helpgrid");d.append('<div class="hginfo">Zoom:'+Math.round(100*p.bw)+"% &nbsp;&nbsp;&nbsp; Device Level:"+p.curWinRange+"&nbsp;&nbsp;&nbsp; Grid Preset:"+p.gridwidth[p.curWinRange]+"x"+p.gridheight[p.curWinRange]+"</div>"),p.c.append('<div class="hglayerinfo"></div>'),d.append('<div class="tlhg"></div>')}void 0!==a&&p.layers[a]&&jQuery.each(p.layers[a],function(e,t){var i=jQuery(this);A.updateMarkup(this,p),A.prepareSingleCaption({caption:i,opt:p,offsetx:s,offsety:0,index:e,recall:n,preset:r}),r&&0!==o||A.buildFullTimeLine({caption:i,opt:p,offsetx:s,off