"use strict";(self.webpackChunkcnblogs_theme_simplememory_2_2_12=self.webpackChunkcnblogs_theme_simplememory_2_2_12||[]).push([[315],{9830:function(e,t,n){n.a(e,(async function(e,o){try{function c(e,t,n,o,c,a){let l=document.getElementById(e),i=[],s=!1;for(let e in t)(new Image).src=t[e];for(let e=0;e<n;e++){let o=document.createElement("div");o.className="part";let c=document.createElement("div");c.className="section";let s=document.createElement("img");s.src=t[a],c.appendChild(s),o.style.setProperty("--x",-100/n*e+"vw"),o.appendChild(c),l.appendChild(o),i.push(o)}let d={duration:2.3,ease:Power4.easeInOut};window.setInterval((()=>{!function(n){if(!s){function o(t,n){t.appendChild(n),gsap.to(t,{...d,y:-1*document.getElementById(e).offsetHeight}).then((function(){t.children[0].remove(),gsap.to(t,{duration:0,y:0})}))}function c(t,n){t.prepend(n),gsap.to(t,{duration:0,y:-1*document.getElementById(e).offsetHeight}),gsap.to(t,{...d,y:0}).then((function(){t.children[1].remove(),s=!1}))}s=!0,a+n<0?a=t.length-1:a+n>=t.length?a=0:a+=n;for(let l in i){let m=i[l],r=document.createElement("div");r.className="section";let u=document.createElement("img");u.src=t[a],r.appendChild(u),(l-Math.max(0,n))%2?c(m,r):o(m,r)}}}(c)}),o)}n.r(t),n.d(t,{default:function(){return c}}),await $.__tools.dynamicLoadingJs($.__config.default.gsap).catch((e=>console.error("gsap.js",e))),o()}catch(a){o(a)}}),1)}}]);