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

@digitalmoves/adaptive-background

Package Overview
Dependencies
Maintainers
0
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@digitalmoves/adaptive-background - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

6

CHANGELOG.md
# @digitalmoves/adaptive-background
## 0.0.4
### Patch Changes
- a8c81b1: Tighten change scroll distance
## 0.0.3

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

2

dist/main.umd.js

@@ -8,2 +8,2 @@ /*

*/
(function(s){typeof define=="function"&&define.amd?define(s):s()})(function(){"use strict";const s=r;function r(o,x){const t=i();return r=function(e,n){return e=e-112,t[e]},r(o,x)}(function(o,x){const t=r,e=o();for(;;)try{if(parseInt(t(115))/1+-parseInt(t(122))/2*(parseInt(t(132))/3)+-parseInt(t(128))/4+-parseInt(t(114))/5+-parseInt(t(124))/6*(parseInt(t(134))/7)+-parseInt(t(112))/8*(-parseInt(t(116))/9)+parseInt(t(129))/10===x)break;e.push(e.shift())}catch{e.push(e.shift())}})(i,815279);class c{constructor(x={}){const t=r;this[t(131)]=document[t(133)](".container .page-section"),this[t(119)]()}init(){const x=r;gsap.registerPlugin(ScrollTrigger),this[x(131)][x(113)]((t,e)=>{const n=x,a=t[n(130)](".section-border");if(a){if(gsap[n(120)](document[n(130)]("footer"),{zIndex:999}),gsap.set(a,{position:"fixed",top:0,left:0,width:n(118),height:n(118),opacity:e===0?1:0,pointerEvents:n(127),zIndex:-1}),e===0)return;ScrollTrigger.create({trigger:t,start:n(125),end:n(123),scrub:!0,animation:gsap.to(a,{opacity:1,duration:1,overwrite:"auto"}),toggleClass:"background-adjusting"})}}),window.addEventListener(x(121),()=>{ScrollTrigger.refresh()})}}document[s(126)](s(117),()=>{new c});function i(){const o=["forEach","3294990PaFRjE","1598168nKlEin","9CessrU","DOMContentLoaded","100%","init","set","resize","555782TrPMWu","top top","12rlwGcK","top bottom-=200","addEventListener","none","2056912BfVztb","15921540ZZjTbP","querySelector","sections","9mVnDFe","querySelectorAll","2163763rhstDr","2000592BfRKDh"];return i=function(){return o},i()}});
(function(r){typeof define=="function"&&define.amd?define(r):r()})(function(){"use strict";function r(o,n){const t=i();return r=function(x,e){return x=x-425,t[x]},r(o,n)}const a=r;function i(){const o=["querySelector","1878834ZMylcC","777519txuhTP","4992568gXRRXa","refresh","registerPlugin","100%","querySelectorAll","init","7855SHjRHR","forEach","auto","245266YPNboY","background-adjusting","top top","sections",".container .page-section","281960KLsjeI","773178PsGTVR","DOMContentLoaded","20TbUSvY","addEventListener","set",".section-border","resize"];return i=function(){return o},i()}(function(o,n){const t=r,x=o();for(;;)try{if(-parseInt(t(429))/1+-parseInt(t(434))/2+-parseInt(t(444))/3+-parseInt(t(437))/4*(-parseInt(t(426))/5)+parseInt(t(443))/6+-parseInt(t(435))/7+parseInt(t(445))/8===n)break;x.push(x.shift())}catch{x.push(x.shift())}})(i,189192);class c{constructor(n={}){const t=r;adaptiveBackground&&(this[t(432)]=document[t(449)](t(433)),this[t(425)]())}init(){const n=r;gsap[n(447)](ScrollTrigger),this.sections[n(427)]((t,x)=>{const e=n,s=t[e(442)](e(440));if(s){if(gsap.set(document[e(442)]("footer"),{zIndex:999}),gsap[e(439)](s,{position:"fixed",top:0,left:0,width:e(448),height:e(448),opacity:x===0?1:0,pointerEvents:"none",zIndex:-1}),x===0)return;ScrollTrigger.create({trigger:t,start:"top-=200px top",end:e(431),scrub:!0,animation:gsap.to(s,{opacity:1,duration:1,overwrite:e(428)}),toggleClass:e(430)})}}),window[n(438)](n(441),()=>{const t=n;ScrollTrigger[t(446)]()})}}document.addEventListener(a(436),()=>{new c})});
{
"name": "@digitalmoves/adaptive-background",
"private": false,
"version": "0.0.3",
"version": "0.0.4",
"main": "dist/main.umd.js",

@@ -6,0 +6,0 @@ "files": [

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