Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@digitalmoves/flying-images

Package Overview
Dependencies
Maintainers
0
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@digitalmoves/flying-images - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

6

CHANGELOG.md
# @digitalmoves/flying-images
## 0.0.5
### Patch Changes
- 0a25bcc: Improve package.json
## 0.0.4

@@ -4,0 +10,0 @@

2

dist/main.js

@@ -1,1 +0,1 @@

(function(m,u){typeof exports=="object"&&typeof module<"u"?u(exports):typeof define=="function"&&define.amd?define(["exports"],u):(m=typeof globalThis<"u"?globalThis:m||self,u(m["flying-images"]={}))})(this,function(m){"use strict";(function(i,x){const n=u,t=i();for(;;)try{if(-parseInt(n(217))/1+-parseInt(n(232))/2*(parseInt(n(228))/3)+parseInt(n(219))/4+-parseInt(n(221))/5+parseInt(n(213))/6*(-parseInt(n(229))/7)+-parseInt(n(234))/8+parseInt(n(220))/9===x)break;t.push(t.shift())}catch{t.push(t.shift())}})(d,608812);function u(i,x){const n=d();return u=function(t,e){return t=t-210,n[t]},u(i,x)}function d(){const i=["querySelector","split","data-image-dimensions","DOMContentLoaded","from",".summary-excerpt","336684JUKYCC","5749611sPDGZc","trim","error","20TigXIn","forEach","5947912Eojpsy","img",".summary-item-list .summary-item","href","querySelectorAll","textContent","getAttribute","closest","Unable to find Summary Block with title ","6YdVYhq","data-src",".summary-header-text","map","520155sUbRnS","addEventListener","2638904RnEEpx","31843098SIpahR","1908695cgPwcD"];return d=function(){return i},d()}function k(i){const x=u,n=document[x(238)](x(215));let t=null;if(n[x(233)](o=>{const s=x;o[s(239)][s(230)]()===i&&(t=o[s(211)](".page-section"))}),!t)return[null,[]];const e=t.querySelectorAll(x(236)),r=Array[x(226)](e)[x(216)](o=>{const s=x,f=o[s(222)](s(235)),h=o[s(222)]("a.summary-title-link"),a=o[s(222)](s(227));return{id:o.id,src:f?f[s(210)](s(214))+"?format=500w":"",dims:f[s(210)](s(224))[s(223)]("x"),href:h?h[s(210)](s(237)):"",title:h?h.textContent[s(230)]():"",excerpt:a?a[s(239)][s(230)]():""}});return[t,r]}function T(i){return function(n,t={}){const e=u;document[e(218)](e(225),function(){const r=e,[o,s]=k(n);o||console[r(231)](r(212)+n),new i(s,o,t)})}}(function(i,x){const n=S,t=i();for(;;)try{if(parseInt(n(256))/1*(-parseInt(n(257))/2)+-parseInt(n(261))/3+-parseInt(n(267))/4*(-parseInt(n(268))/5)+-parseInt(n(266))/6*(-parseInt(n(262))/7)+parseInt(n(259))/8+-parseInt(n(258))/9*(-parseInt(n(263))/10)+-parseInt(n(264))/11===x)break;t.push(t.shift())}catch{t.push(t.shift())}})(b,664647);function S(i,x){const n=b();return S=function(t,e){return t=t-256,n[t]},S(i,x)}function b(){const i=["36oMXOWo","12935bvpkqT","DOMContentLoaded","177kDqbza","9980bcDfUd","1503cnazOi","5259096LTvnRb","push","2866659MvJOwd","4610522fPUcXp","37790kTQYrt","1381875SsXTTU","length","12OvnkmJ"];return b=function(){return i},b()}(function(i,x){const n=v,t=i();for(;;)try{if(parseInt(n(134))/1+-parseInt(n(132))/2*(-parseInt(n(147))/3)+-parseInt(n(141))/4+-parseInt(n(159))/5+parseInt(n(158))/6*(-parseInt(n(154))/7)+-parseInt(n(130))/8+parseInt(n(150))/9===x)break;t.push(t.shift())}catch{t.push(t.shift())}})(g,458199);function g(){const i=["669604LVEeLF",".summary-header-text","map","img","querySelectorAll","Unable to find Summary Blocks with title ","data-src","2638540nNfBWZ","querySelector",".summary-excerpt","length","textContent","push","321atbQVX","body","error","11166030bfsorQ","forEach","contains","getAttribute","90349SObPNb",".sqs-block","from","classList","210eqQepw","3849350GskvOG","?format=500w","trim","DOMContentLoaded","686528Epjhhg","a.summary-title-link","9626JAiKlO","split"];return g=function(){return i},g()}function v(i,x){const n=g();return v=function(t,e){return t=t-130,n[t]},v(i,x)}function w(i,x){var n=I();return w=function(t,e){t=t-479;var r=n[t];return r},w(i,x)}(function(i,x){for(var n=w,t=i();;)try{var e=-parseInt(n(483))/1*(-parseInt(n(480))/2)+parseInt(n(485))/3+parseInt(n(482))/4+parseInt(n(486))/5*(parseInt(n(484))/6)+-parseInt(n(487))/7+-parseInt(n(479))/8+parseInt(n(481))/9;if(e===x)break;t.push(t.shift())}catch{t.push(t.shift())}})(I,828816);function I(){var i=["534900CRCIQM","380coJKZb","4864097xEEiYX","12191160fewJtQ","234Oenaos","2142225ItJoTZ","1200884dBQMgC","12832SyqwjL","65502YjsYnJ"];return I=function(){return i},I()}const l=p;(function(i,x){const n=p,t=i();for(;;)try{if(parseInt(n(497))/1+parseInt(n(558))/2+-parseInt(n(538))/3+-parseInt(n(598))/4*(-parseInt(n(522))/5)+-parseInt(n(501))/6+parseInt(n(547))/7+parseInt(n(505))/8*(-parseInt(n(499))/9)===x)break;t.push(t.shift())}catch{t.push(t.shift())}})(y,420435);function y(){const i=["px)","removeSummaryBlock","querySelector","blur(0px)","height","transform","preventDefault","5iZnFvw","transitionDuration","auto","verticalJitter","transitioning","duration","ms ease, filter ","blurAmount","init","from","filter","elapsedTime","baseWidth","src","cursor","activeCount","1759932RqOuZh",".summary-v2-block","scaleTransitionStartTime","shift","elements","alt","excerpt","resize","ms ease","2071146owQYrB","section","calc","style","mouseleave","random","transition","alignmentStep","zIndex","initialScale","forEach","473838dZjVaE","scale(1)","transform ","currentScale","queue","bottom","scaling","offsetWidth","width","createFlyingImages","startNextImage","floor","push","maxActive"," scale(","blur(","baseHeight","left","isFocused","delayJitter","clickable","now","href","dm-flying-images","title","transitionStartTime","scaleAmount","targetSpeedFactor","translateX(-","img","lastTimestamp","isActive","applyFocus","focusOnHover","zIndexPool","speedFactor","startsWith","innerWidth","click","config","797536glvgZm","top","setSectionStyles","maxImages","length","slowSpeedFactor","hidden","position","direction","dims","remove","761082SHygdO","maxImageSize","4707QPurUv","createElement","2025912XrGNGD","removeFocus"," translateY(-50%)","min","2272avdTED","items","targetScale","animateImages","initialSpeedFactor","addEventListener","bind","delay","translateX(","relative"];return y=function(){return i},y()}function p(i,x){const n=y();return p=function(t,e){return t=t-488,n[t]},p(i,x)}class F{constructor(x,n,t){const e=p;this[e(597)]={maxImages:5,duration:5e3,delay:1500,delayJitter:1.2,verticalJitter:100,transitionDuration:350,slowSpeedFactor:.05,focusOnHover:!1,blurAmount:5,scaleAmount:1.03,direction:"left",clickable:!0,maxImageSize:500,...t},this[e(506)]=x,this[e(548)]=n,this[e(542)]=[],this.activeCount=0,this[e(571)]=this[e(597)][e(489)],this[e(562)]=[],this[e(592)]=Array[e(531)]({length:this.config[e(489)]},(r,o)=>o+1),this.alignmentStep=0,this[e(530)]()}[l(530)](){const x=l;this.removeSummaryBlock(),this[x(488)](),this[x(567)](),window.addEventListener(x(545),this[x(488)][x(511)](this)),this[x(568)](),requestAnimationFrame(this.animateImages[x(511)](this))}[l(516)](){const x=l,n=this[x(548)][x(517)](x(539));n&&n[x(496)]()}[l(488)](){const x=l;this[x(548)][x(550)][x(493)]=x(514),this.section[x(550)][x(519)]=window.innerHeight+"px",this.section[x(550)].overflow=x(492)}[l(567)](){const x=l;this[x(506)].forEach(n=>{const t=x,e=document[t(500)]("a");e.href=n[t(580)],e.title=n[t(582)],!this[t(597)][t(578)]&&(e[t(510)](t(596),c=>{c[t(521)]()}),e[t(550)][t(536)]="default");const r=document[t(500)]("img");r.src=n[t(535)],r[t(543)]=n[t(544)];const[o,s]=n[t(495)];let f=o>s?this[t(597)][t(498)]:o/s*this[t(597)][t(498)],h=o>s?s/o*this.config[t(498)]:this[t(597)].maxImageSize;r[t(550)][t(566)]=f+"px",r.style.height=h+"px",r[t(550)][t(553)]=t(560)+this[t(597)][t(523)]+t(528)+this[t(597)][t(523)]+t(546),e.appendChild(r),this[t(548)].appendChild(e),e[t(550)].position="absolute",e[t(550)][t(575)]="0",this[t(597)][t(494)]===t(575)?e[t(550)][t(520)]=t(513)+window.innerWidth+t(515):e.style[t(520)]=t(586)+(f+1)+"px)";const a={el:e,img:r,isActive:!1,elapsedTime:0,lastTimestamp:null,zIndex:0,baseWidth:f,baseHeight:h,speedFactor:1,targetSpeedFactor:1,initialSpeedFactor:1,transitionStartTime:null,transitioning:!1,isFocused:!1,currentScale:1,targetScale:1,initialScale:1,scaleTransitionStartTime:null,scaling:!1};this[t(562)][t(570)](a),e[t(510)]("mouseenter",()=>{const c=t;this[c(597)][c(591)]&&this[c(590)](a),this[c(597)][c(491)]!==null&&(a[c(509)]=a.speedFactor,a[c(585)]=this.config[c(491)],a[c(583)]=performance.now(),a[c(526)]=!0)}),e[t(510)](t(551),()=>{const c=t;this[c(597)][c(591)]&&this[c(502)](a),this[c(597)][c(491)]!==null&&(a[c(509)]=a.speedFactor,a[c(585)]=1,a[c(583)]=performance.now(),a[c(526)]=!0)})})}[l(590)](x){const n=l;x.el[n(550)].zIndex=9999,x.initialScale=x.currentScale,x[n(507)]=this[n(597)][n(584)],x.scaleTransitionStartTime=performance[n(579)](),x[n(564)]=!0,this[n(542)][n(557)](t=>{const e=n;t!==x&&t[e(589)]&&(t[e(587)][e(550)].filter=e(573)+this[e(597)][e(529)]+"px)")})}removeFocus(x){const n=l;x.el.style.zIndex=x[n(555)],x.initialScale=x[n(561)],x.targetScale=1,x[n(540)]=performance[n(579)](),x[n(564)]=!0,this[n(542)][n(557)](t=>{const e=n;t!==x&&t[e(589)]&&(t[e(587)][e(550)][e(532)]=e(518))})}[l(568)](){const x=l;if(this[x(537)]>=this.maxActive||this[x(562)][x(490)]===0)return;const n=this.queue[x(541)]();if(n&&this[x(592)][x(490)]>0){this.activeCount++,n[x(589)]=!0,n[x(533)]=0,n[x(588)]=null;const t=Math[x(569)](Math[x(552)]()*this[x(592)].length),e=this.zIndexPool.splice(t,1)[0];n[x(555)]=e,n.el[x(550)][x(555)]=n[x(555)];const r=.5+(n[x(555)]-1)/(this.maxActive-1)*1;n.img[x(550)][x(566)]=n[x(534)]*r+"px",n[x(587)][x(550)][x(519)]=n[x(574)]*r+"px";const o=this.alignmentStep%3,s=Math.floor(Math.random()*(2*this[x(597)].verticalJitter+1))-this[x(597)][x(525)];switch(o){case 0:n.el[x(550)][x(599)]=s+"px",n.el[x(550)].bottom=x(524);break;case 1:n.el.style[x(563)]=s+"px",n.el[x(550)].top="auto";break;case 2:n.el[x(550)][x(599)]="calc(50% + "+s+"px)",n.el[x(550)][x(563)]=x(524);break}n[x(576)]=!1,n.img[x(550)].filter=x(518),n.img[x(550)].transform=x(559),this.config[x(494)]===x(575)?n.el[x(550)][x(520)]=x(513)+window[x(595)]+x(515)+(o===2?x(503):""):n.el[x(550)].transform=x(586)+(n[x(534)]+1)+"px)"+(o===2?x(503):""),this[x(554)]++,this.elements[x(570)](n);const f=this[x(597)][x(512)]+Math[x(552)]()*this.config.delay*(this[x(597)][x(577)]-1);setTimeout(()=>this[x(568)](),f)}}[l(508)](x){const n=l;this[n(542)][n(557)](t=>{const e=n;if(t[e(589)]){t[e(588)]||(t.lastTimestamp=x);const r=x-t[e(588)];if(t.lastTimestamp=x,t[e(526)]){const a=Math[e(504)]((x-t[e(583)])/this[e(597)][e(523)],1);t[e(593)]=t.initialSpeedFactor+(t[e(585)]-t[e(509)])*a,a===1&&(t[e(526)]=!1)}if(t[e(564)]){const a=Math[e(504)]((x-t[e(540)])/this[e(597)][e(523)],1);t[e(561)]=t[e(556)]+(t[e(507)]-t[e(556)])*a,a===1&&(t[e(564)]=!1)}t[e(533)]+=r*t[e(593)];const o=t[e(533)]/this[e(597)][e(527)],s=t[e(587)][e(565)];let f,h;if(this[e(597)][e(494)]==="left"?(f=window[e(595)]+s,h=window[e(595)]-f*o):(f=window[e(595)]+s+2,h=-s-1+f*o),o<1){let a="translateX("+h+"px)";t.el.style[e(599)][e(594)](e(549))&&(a+=e(503)),this.config[e(591)]&&t.isFocused&&(a+=e(572)+t[e(561)]+")"),t.el[e(550)][e(520)]=a}else t[e(576)]=!1,t[e(587)][e(550)][e(532)]=e(518),t.img[e(550)][e(520)]="scale(1)",this[e(597)][e(494)]===e(575)?t.el[e(550)][e(520)]=e(513)+window[e(595)]+e(515)+(t.el[e(550)][e(599)][e(594)](e(549))?" translateY(-50%)":""):t.el[e(550)][e(520)]=e(586)+(t[e(534)]+1)+e(515)+(t.el[e(550)].top[e(594)](e(549))?" translateY(-50%)":""),t.img[e(550)][e(566)]=t[e(534)]+"px",t[e(587)][e(550)][e(519)]=t[e(574)]+"px",t.el[e(550)][e(555)]=0,t.isActive=!1,this[e(537)]--,this[e(592)][e(570)](t[e(555)]),t[e(555)]=0,this[e(562)][e(570)](t),this.startNextImage()}}),requestAnimationFrame(this[n(508)].bind(this))}}const _=T(F);try{_(l(581),flyingImagesConfig)}catch{_("dm-flying-images")}m.startFlyingImages=_,Object.defineProperty(m,Symbol.toStringTag,{value:"Module"})});
(function(u,h){typeof exports=="object"&&typeof module<"u"?h(exports):typeof define=="function"&&define.amd?define(["exports"],h):(u=typeof globalThis<"u"?globalThis:u||self,h(u["flying-images"]={}))})(this,function(u){"use strict";(function(s,x){const e=p,t=s();for(;;)try{if(parseInt(e(456))/1*(-parseInt(e(441))/2)+-parseInt(e(451))/3*(-parseInt(e(436))/4)+parseInt(e(463))/5*(parseInt(e(464))/6)+-parseInt(e(437))/7+parseInt(e(452))/8*(parseInt(e(439))/9)+-parseInt(e(457))/10*(-parseInt(e(462))/11)+parseInt(e(442))/12*(-parseInt(e(453))/13)===x)break;t.push(t.shift())}catch{t.push(t.shift())}})(h,649123);function h(){const s=["from","querySelectorAll",".summary-item-list .summary-item","href","125667INVkDk","39392KXzFUn","8297198pERLeV",".page-section","getAttribute","41306BanZjw","10oKkBNb","a.summary-title-link","error","textContent",".summary-header-text","13062434UzXpSm","3545QYlaSZ","7566MTHlsE","?format=500w","Unable to find Summary Block with title ","data-image-dimensions",".summary-excerpt","trim","20DwHeMl","5173679Jyusjn","map","45OtpPjz","img","14xaaFbR","12jhpsyy","closest","querySelector","data-src","addEventListener"];return h=function(){return s},h()}function k(s){const x=p,e=document[x(448)](x(461));let t=null;if(e.forEach(r=>{const i=x;r[i(460)].trim()===s&&(t=r[i(443)](i(454)))}),!t)return[null,[]];const n=t[x(448)](x(449)),c=Array[x(447)](n)[x(438)](r=>{const i=x,d=r.querySelector(i(440)),f=r[i(444)](i(458)),a=r[i(444)](i(434));return{id:r.id,src:d?d[i(455)](i(445))+i(465):"",dims:d.getAttribute(i(467)).split("x"),href:f?f[i(455)](i(450)):"",title:f?f[i(460)][i(435)]():"",excerpt:a?a[i(460)].trim():""}});return[t,c]}function p(s,x){const e=h();return p=function(t,n){return t=t-434,e[t]},p(s,x)}function F(s){return function(e,t={}){const n=p;document[n(446)]("DOMContentLoaded",function(){const c=n,[r,i]=k(e);r||console[c(459)](c(466)+e),new s(i,r,t)})}}(function(s,x){const e=S,t=s();for(;;)try{if(-parseInt(e(409))/1+-parseInt(e(414))/2*(-parseInt(e(410))/3)+-parseInt(e(407))/4*(-parseInt(e(415))/5)+-parseInt(e(399))/6+parseInt(e(400))/7*(-parseInt(e(402))/8)+-parseInt(e(413))/9*(parseInt(e(404))/10)+-parseInt(e(405))/11*(-parseInt(e(408))/12)===x)break;t.push(t.shift())}catch{t.push(t.shift())}})(m,498267);function m(){const s=["9093KazkYm","addEventListener","error","6458553TJwsgF","26OaDiDd","985rKpRSQ","length","2235540yuVFLh","7ObGvTn","Unable to find Summary Block with title ","5029744BesVFL","DOMContentLoaded","10KCqviw","66JAEWls","push","16824kWSOQr","2731956HwpANi","16771aEwHkA"];return m=function(){return s},m()}function S(s,x){const e=m();return S=function(t,n){return t=t-399,e[t]},S(s,x)}function I(){const s=["data-src","addEventListener","7637Uiceqv","1064433GrWKQh","contains","3324cbbqDW","split",".summary-excerpt","map","sqs-seven-one","push","error","querySelectorAll","2236vQJXJe",".summary-header-text","2222TPyULm","439EYLycu","data-image-dimensions","querySelector","DOMContentLoaded","4892344jZLYub","textContent",".sqs-block","getAttribute","14237577AFWuNV","trim","35002352PjXvbQ","10rdMxQE","Unable to find Summary Blocks with title ","7655SCZVEQ","length","?format=500w","img","forEach"];return I=function(){return s},I()}function w(s,x){const e=I();return w=function(t,n){return t=t-176,e[t]},w(s,x)}(function(s,x){const e=w,t=s();for(;;)try{if(-parseInt(e(187))/1*(-parseInt(e(186))/2)+-parseInt(e(208))/3+parseInt(e(184))/4*(-parseInt(e(200))/5)+-parseInt(e(176))/6*(-parseInt(e(207))/7)+-parseInt(e(191))/8+parseInt(e(195))/9*(-parseInt(e(198))/10)+parseInt(e(197))/11===x)break;t.push(t.shift())}catch{t.push(t.shift())}})(I,870039),function(s,x){for(var e=v,t=s();;)try{var n=-parseInt(e(290))/1*(-parseInt(e(282))/2)+parseInt(e(285))/3+-parseInt(e(288))/4*(parseInt(e(284))/5)+-parseInt(e(287))/6*(-parseInt(e(293))/7)+-parseInt(e(286))/8*(parseInt(e(283))/9)+parseInt(e(292))/10*(parseInt(e(289))/11)+parseInt(e(291))/12;if(n===x)break;t.push(t.shift())}catch{t.push(t.shift())}}(g,970152);function g(){var s=["2jXLdQs","3319398vQViun","820PnhnTB","583530ofpXxx","40AODAtB","33432UnDCiW","38536MCxboG","22kyEnbY","676795WroPZM","36004884dPxTHB","1024610skvnpT","399PQLYKm"];return g=function(){return s},g()}function v(s,x){var e=g();return v=function(t,n){t=t-282;var c=e[t];return c},v(s,x)}const l=b;(function(s,x){const e=b,t=s();for(;;)try{if(parseInt(e(392))/1+-parseInt(e(388))/2+parseInt(e(429))/3+-parseInt(e(406))/4*(-parseInt(e(489))/5)+-parseInt(e(483))/6*(parseInt(e(487))/7)+parseInt(e(457))/8*(parseInt(e(488))/9)+-parseInt(e(458))/10===x)break;t.push(t.shift())}catch{t.push(t.shift())}})(y,513896);class A{constructor(x,e,t){const n=b;this[n(422)]={maxImages:5,duration:5e3,delay:1500,delayJitter:1.2,verticalJitter:100,transitionDuration:350,slowSpeedFactor:.05,focusOnHover:!1,blurAmount:5,scaleAmount:1.03,direction:"left",clickable:!0,maxImageSize:500,...t},this.items=x,this[n(449)]=e,this[n(460)]=[],this[n(485)]=0,this[n(470)]=this[n(422)][n(452)],this[n(412)]=[],this.zIndexPool=Array[n(484)]({length:this[n(422)].maxImages},(c,r)=>r+1),this.alignmentStep=0,this.init()}init(){const x=b;this[x(432)](),this[x(465)](),this[x(491)](),window[x(473)](x(469),this[x(465)].bind(this)),this[x(478)](),requestAnimationFrame(this[x(414)][x(386)](this))}[l(432)](){const x=l,e=this[x(449)].querySelector(x(408));e&&e[x(433)]()}[l(465)](){const x=l;this[x(449)][x(455)][x(459)]="relative",this[x(449)][x(455)].height=window[x(435)]+"px",this[x(449)].style.overflow="hidden"}[l(491)](){const x=l;this[x(410)][x(405)](e=>{const t=x,n=document.createElement("a");n[t(397)]=e[t(397)],n[t(395)]=e.title,!this[t(422)][t(471)]&&(n.addEventListener(t(413),o=>{o[t(447)]()}),n[t(455)][t(441)]="default");const c=document.createElement(t(445));c[t(393)]=e.src,c.alt=e[t(396)];const[r,i]=e[t(399)];let d=r>i?this.config[t(486)]:r/i*this.config.maxImageSize,f=r>i?i/r*this[t(422)][t(486)]:this[t(422)][t(486)];c[t(455)][t(446)]=d+"px",c[t(455)].height=f+"px",c[t(455)][t(474)]="transform "+this[t(422)][t(453)]+"ms ease, filter "+this[t(422)][t(453)]+t(401),n.appendChild(c),this[t(449)][t(428)](n),n[t(455)][t(459)]="absolute",n[t(455)].left="0",this.config[t(481)]==="left"?n[t(455)].transform=t(400)+window.innerWidth+"px)":n[t(455)][t(419)]=t(411)+(d+1)+"px)";const a={el:n,img:c,isActive:!1,elapsedTime:0,lastTimestamp:null,zIndex:0,baseWidth:d,baseHeight:f,speedFactor:1,targetSpeedFactor:1,initialSpeedFactor:1,transitionStartTime:null,transitioning:!1,isFocused:!1,currentScale:1,targetScale:1,initialScale:1,scaleTransitionStartTime:null,scaling:!1};this.queue.push(a),n[t(473)]("mouseenter",()=>{const o=t;this[o(422)][o(417)]&&this[o(479)](a),this.config[o(475)]!==null&&(a[o(450)]=a[o(427)],a[o(391)]=this.config.slowSpeedFactor,a[o(442)]=performance[o(439)](),a.transitioning=!0)}),n[t(473)](t(480),()=>{const o=t;this.config[o(417)]&&this[o(389)](a),this[o(422)].slowSpeedFactor!==null&&(a[o(450)]=a[o(427)],a[o(391)]=1,a[o(442)]=performance.now(),a[o(472)]=!0)})})}[l(479)](x){const e=l;x.el[e(455)].zIndex=9999,x[e(477)]=x[e(463)],x[e(462)]=this.config.scaleAmount,x[e(415)]=performance[e(439)](),x.scaling=!0,this[e(460)][e(405)](t=>{const n=e;t!==x&&t.isActive&&(t[n(445)].style[n(476)]=n(387)+this[n(422)][n(424)]+n(431))})}[l(389)](x){const e=l;x.el[e(455)][e(426)]=x[e(426)],x[e(477)]=x[e(463)],x[e(462)]=1,x[e(415)]=performance.now(),x[e(454)]=!0,this[e(460)][e(405)](t=>{const n=e;t!==x&&t[n(421)]&&(t[n(445)][n(455)][n(476)]="blur(0px)")})}[l(478)](){const x=l;if(this[x(485)]>=this[x(470)]||this[x(412)][x(461)]===0)return;const e=this[x(412)][x(407)]();if(e&&this[x(418)][x(461)]>0){this[x(485)]++,e[x(421)]=!0,e[x(444)]=0,e[x(409)]=null;const t=Math.floor(Math[x(423)]()*this.zIndexPool[x(461)]),n=this.zIndexPool[x(467)](t,1)[0];e[x(426)]=n,e.el[x(455)].zIndex=e.zIndex;const c=.5+(e[x(426)]-1)/(this[x(470)]-1)*1;e[x(445)].style[x(446)]=e[x(394)]*c+"px",e[x(445)].style[x(402)]=e[x(490)]*c+"px";const r=this.alignmentStep%3,i=Math[x(438)](Math[x(423)]()*(2*this[x(422)][x(437)]+1))-this[x(422)][x(437)];switch(r){case 0:e.el[x(455)].top=i+"px",e.el.style[x(468)]=x(436);break;case 1:e.el[x(455)][x(468)]=i+"px",e.el[x(455)][x(430)]="auto";break;case 2:e.el.style[x(430)]=x(482)+i+"px)",e.el[x(455)][x(468)]=x(436);break}e[x(425)]=!1,e[x(445)][x(455)][x(476)]=x(404),e[x(445)].style.transform="scale(1)",this[x(422)].direction==="left"?e.el.style.transform=x(400)+window[x(456)]+x(431)+(r===2?" translateY(-50%)":""):e.el.style[x(419)]=x(411)+(e.baseWidth+1)+x(431)+(r===2?x(464):""),this.alignmentStep++,this[x(460)][x(416)](e);const d=this[x(422)][x(434)]+Math.random()*this[x(422)].delay*(this[x(422)][x(448)]-1);setTimeout(()=>this[x(478)](),d)}}[l(414)](x){const e=l;this[e(460)][e(405)](t=>{const n=e;if(t.isActive){t[n(409)]||(t[n(409)]=x);const c=x-t[n(409)];if(t[n(409)]=x,t[n(472)]){const a=Math[n(398)]((x-t.transitionStartTime)/this[n(422)][n(453)],1);t.speedFactor=t[n(450)]+(t[n(391)]-t.initialSpeedFactor)*a,a===1&&(t.transitioning=!1)}if(t[n(454)]){const a=Math[n(398)]((x-t[n(415)])/this[n(422)][n(453)],1);t.currentScale=t[n(477)]+(t[n(462)]-t.initialScale)*a,a===1&&(t[n(454)]=!1)}t[n(444)]+=c*t[n(427)];const r=t.elapsedTime/this[n(422)][n(420)],i=t[n(445)][n(451)];let d,f;if(this[n(422)][n(481)]===n(466)?(d=window[n(456)]+i,f=window[n(456)]-d*r):(d=window[n(456)]+i+2,f=-i-1+d*r),r<1){let a=n(400)+f+n(431);t.el[n(455)].top.startsWith("calc")&&(a+=n(464)),this[n(422)][n(417)]&&t[n(425)]&&(a+=" scale("+t[n(463)]+")"),t.el[n(455)][n(419)]=a}else t[n(425)]=!1,t[n(445)][n(455)].filter=n(404),t[n(445)].style[n(419)]=n(443),this[n(422)].direction===n(466)?t.el.style[n(419)]=n(400)+window[n(456)]+n(431)+(t.el[n(455)][n(430)][n(403)](n(440))?n(464):""):t.el.style[n(419)]=n(411)+(t[n(394)]+1)+n(431)+(t.el[n(455)].top[n(403)](n(440))?n(464):""),t[n(445)].style.width=t[n(394)]+"px",t[n(445)][n(455)][n(402)]=t.baseHeight+"px",t.el[n(455)][n(426)]=0,t[n(421)]=!1,this[n(485)]--,this[n(418)].push(t[n(426)]),t[n(426)]=0,this[n(412)][n(416)](t),this[n(478)]()}}),requestAnimationFrame(this[e(414)][e(386)](this))}}function b(s,x){const e=y();return b=function(t,n){return t=t-386,e[t]},b(s,x)}function y(){const s=["bind","blur(","652970gtQUSk","removeFocus","dm-flying-images","targetSpeedFactor","857876XSoTBD","src","baseWidth","title","excerpt","href","min","dims","translateX(","ms ease","height","startsWith","blur(0px)","forEach","25992DlaojN","shift",".summary-v2-block","lastTimestamp","items","translateX(-","queue","click","animateImages","scaleTransitionStartTime","push","focusOnHover","zIndexPool","transform","duration","isActive","config","random","blurAmount","isFocused","zIndex","speedFactor","appendChild","664116AsKXFZ","top","px)","removeSummaryBlock","remove","delay","innerHeight","auto","verticalJitter","floor","now","calc","cursor","transitionStartTime","scale(1)","elapsedTime","img","width","preventDefault","delayJitter","section","initialSpeedFactor","offsetWidth","maxImages","transitionDuration","scaling","style","innerWidth","88uymRXm","10983790zHriCo","position","elements","length","targetScale","currentScale"," translateY(-50%)","setSectionStyles","left","splice","bottom","resize","maxActive","clickable","transitioning","addEventListener","transition","slowSpeedFactor","filter","initialScale","startNextImage","applyFocus","mouseleave","direction","calc(50% + ","2275650TlAIOA","from","activeCount","maxImageSize","7DMOfkj","604179AuGweY","385EjMHmj","baseHeight","createFlyingImages"];return y=function(){return s},y()}const _=F(A);try{_(l(390),flyingImagesConfig)}catch{_(l(390))}u.startFlyingImages=_,Object.defineProperty(u,Symbol.toStringTag,{value:"Module"})});
{
"name": "@digitalmoves/flying-images",
"private": false,
"version": "0.0.4",
"version": "0.0.5",
"main": "dist/main.js",

@@ -16,2 +16,6 @@ "files": [

},
"author": {
"name": "Harley"
},
"homepage": "https://digitalmoves.com.au/plugins/p/flying-images",
"devDependencies": {},

@@ -18,0 +22,0 @@ "scripts": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc