ionic-react-header-parallax
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -30,3 +30,3 @@ "use strict"; | ||
initElements(); | ||
}, 200); | ||
}, 500); | ||
}, [titleColor, image, expandedColor, maximumHeight]); | ||
@@ -46,7 +46,7 @@ const initElements = () => { | ||
const toolbarShadowRoot = toolbar.shadowRoot; | ||
console.log(toolbarShadowRoot); | ||
if (!toolbarShadowRoot) | ||
throw new Error('No shadow'); | ||
const toolbarBackground = toolbarShadowRoot.querySelector('.toolbar-background'); | ||
if (!toolbarBackground) | ||
throw new Error('No .toolbar-background'); | ||
console.log(toolbarBackground); | ||
// ion-title | ||
@@ -53,0 +53,0 @@ const ionTitle = toolbar.querySelector('ion-title'); |
{ | ||
"name": "ionic-react-header-parallax", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "Easy to use hook to handle the parallax effect for IonHeader component in React Ionic", | ||
@@ -48,2 +48,5 @@ "author": { | ||
"clean-install": "rimraf node_modules && yarn", | ||
"docs:build": "yarn docs:clean", | ||
"docs:clean": "rimraf docs", | ||
"docs:serve": "serve docs", | ||
"changelog": "auto-changelog -p", | ||
@@ -72,2 +75,3 @@ "prepare": "rimraf dist && yarn build", | ||
"rimraf": "3.0.2", | ||
"serve": "^12.0.0", | ||
"testing-library__dom": "7.29.4-beta.1", | ||
@@ -74,0 +78,0 @@ "ts-jest": "26.5.6", |
21478
23