@haxtheweb/parallax-image
Advanced tools
Comparing version
@@ -12,3 +12,2 @@ { | ||
"css": "src/parallax-image.css", | ||
"scss": "src/parallax-image.scss", | ||
"html": "src/parallax-image.html", | ||
@@ -21,3 +20,3 @@ "js": "src/parallax-image.js", | ||
}, | ||
"version": "9.0.1", | ||
"version": "9.0.2", | ||
"description": "Automated conversion of parallax-image/", | ||
@@ -47,8 +46,8 @@ "repository": { | ||
"dependencies": { | ||
"@haxtheweb/schema-behaviors": "^9.0.1", | ||
"@haxtheweb/schema-behaviors": "^9.0.2", | ||
"lit": "^3.1.4" | ||
}, | ||
"devDependencies": { | ||
"@haxtheweb/deduping-fix": "^9.0.1", | ||
"@haxtheweb/storybook-utilities": "^9.0.1", | ||
"@haxtheweb/deduping-fix": "^9.0.2", | ||
"@haxtheweb/storybook-utilities": "^9.0.2", | ||
"@open-wc/testing": "4.0.0", | ||
@@ -71,3 +70,3 @@ "@polymer/iron-component-page": "github:PolymerElements/iron-component-page", | ||
], | ||
"gitHead": "7f62cde6a6242afcb57715e1e2067ea767c777fd" | ||
"gitHead": "f528e4aac8aeadf5350d9262fb515d14d208e376" | ||
} |
@@ -124,3 +124,3 @@ import { LitElement, html, css } from "lit"; | ||
const titleParallax = this.shadowRoot.querySelector("#titleParallax"); | ||
const yParallaxPosition = window.scrollY * -0.2; | ||
const yParallaxPosition = globalThis.scrollY * -0.2; | ||
const yParallaxPositionTitle = yParallaxPosition * 1.4; | ||
@@ -133,3 +133,3 @@ bgParallax.style.backgroundPosition = `center ${yParallaxPosition}px`; | ||
setTimeout(() => { | ||
window.addEventListener("scroll", this.scrollBy.bind(this), { | ||
globalThis.addEventListener("scroll", this.scrollBy.bind(this), { | ||
signal: this.windowControllers.signal, | ||
@@ -136,0 +136,0 @@ }); |
@@ -124,3 +124,3 @@ import { LitElement, html, css } from "lit"; | ||
const titleParallax = this.shadowRoot.querySelector("#titleParallax"); | ||
const yParallaxPosition = window.scrollY * -0.2; | ||
const yParallaxPosition = globalThis.scrollY * -0.2; | ||
const yParallaxPositionTitle = yParallaxPosition * 1.4; | ||
@@ -133,3 +133,3 @@ bgParallax.style.backgroundPosition = `center ${yParallaxPosition}px`; | ||
setTimeout(() => { | ||
window.addEventListener("scroll", this.scrollBy.bind(this), { | ||
globalThis.addEventListener("scroll", this.scrollBy.bind(this), { | ||
signal: this.windowControllers.signal, | ||
@@ -136,0 +136,0 @@ }); |
Sorry, the diff of this file is not supported yet
44278
6.84%16
6.67%792
21.29%