{"remainingRequest":"C:\\wamp64\\www\\free-energie\\wp-content\\themes\\digitalcover\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\wamp64\\www\\free-energie\\wp-content\\themes\\digitalcover\\resources\\assets\\scripts\\util\\ParallaxEffect.js","dependencies":[{"path":"C:\\wamp64\\www\\free-energie\\wp-content\\themes\\digitalcover\\resources\\assets\\scripts\\util\\ParallaxEffect.js","mtime":1725006057000},{"path":"C:\\wamp64\\www\\free-energie\\wp-content\\themes\\digitalcover\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1726651497274},{"path":"C:\\wamp64\\www\\free-energie\\wp-content\\themes\\digitalcover\\node_modules\\babel-loader\\lib\\index.js","mtime":1726651482652}],"contextDependencies":[],"result":["export default class ParallaxEffect {\n  constructor() {\n    this._parallaxEffect = this._parallaxEffect.bind(this);\n    this.getElems();\n    this.init();\n    this.addEvents();\n  }\n  getElems() {\n    this.elems = Array.from(document.querySelectorAll('.parallax-container img, .parallax-container .hexagone, .hexagone-small, .hexagone-small-absolute, .hexagone-large, .hexagone-large-2'));\n  }\n  init() {\n    this._parallaxEffect();\n  }\n  addEvents() {\n    if (this.elems) {\n      window.addEventListener('scroll', () => {\n        requestAnimationFrame(this._parallaxEffect);\n      });\n    }\n  }\n  _parallaxEffect() {\n    const scrollPosition = window.scrollY;\n    this.elems.forEach(el => {\n      const speed = el.getAttribute('data-speed') || 0.5;\n      const elPosition = el.getBoundingClientRect().top + scrollPosition;\n      const offset = (scrollPosition - elPosition) * speed;\n      el.style.transform = 'translateY(' + offset + 'px)';\n    });\n  }\n}",null]}