@brandocms/jupiter 3.48.0 → 3.48.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -31,6 +31,10 @@ window.onpageshow = event => {
|
|
|
31
31
|
const $nav = Dom.find('header[data-nav]')
|
|
32
32
|
gsap.set($nav, { clearProps: 'opacity' })
|
|
33
33
|
|
|
34
|
+
// check that main is visible
|
|
35
|
+
const $main = Dom.find('main')
|
|
36
|
+
gsap.set($main, { clearProps: 'opacity' })
|
|
37
|
+
|
|
34
38
|
// check that footer is visible
|
|
35
39
|
const $footer = Dom.find('footer')
|
|
36
40
|
gsap.set($footer, { clearProps: 'opacity' })
|
|
@@ -78,6 +82,7 @@ const DEFAULT_OPTIONS = {
|
|
|
78
82
|
}
|
|
79
83
|
}
|
|
80
84
|
}
|
|
85
|
+
|
|
81
86
|
export default class Application {
|
|
82
87
|
constructor(opts = {}) {
|
|
83
88
|
this.debugType = 1
|
|
@@ -539,8 +544,9 @@ export default class Application {
|
|
|
539
544
|
*/
|
|
540
545
|
setvh100() {
|
|
541
546
|
const root = document.querySelector(':root')
|
|
542
|
-
|
|
543
|
-
root.style.setProperty('--vp-
|
|
547
|
+
const height = this.featureTests.results.ios ? screen.height : window.innerHeight
|
|
548
|
+
root.style.setProperty('--vp-100vh', `${height}px`)
|
|
549
|
+
root.style.setProperty('--vp-1vh', `${height * 0.01}px`)
|
|
544
550
|
}
|
|
545
551
|
|
|
546
552
|
setvw100() {
|