@brandocms/jupiter 5.0.0-beta.2 → 5.0.0-beta.3
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
|
@@ -50,7 +50,7 @@ const DEFAULT_EVENTS = {
|
|
|
50
50
|
|
|
51
51
|
onPin: (h) => {
|
|
52
52
|
animate(h.auxEl, {
|
|
53
|
-
|
|
53
|
+
y: '0%'
|
|
54
54
|
}, {
|
|
55
55
|
duration: 0.35,
|
|
56
56
|
ease: 'easeOut'
|
|
@@ -60,7 +60,7 @@ const DEFAULT_EVENTS = {
|
|
|
60
60
|
onUnpin: (h) => {
|
|
61
61
|
h._hiding = true
|
|
62
62
|
animate(h.auxEl, {
|
|
63
|
-
|
|
63
|
+
y: '-100%'
|
|
64
64
|
}, {
|
|
65
65
|
duration: 0.25,
|
|
66
66
|
ease: 'easeIn'
|
|
@@ -86,12 +86,12 @@ const DEFAULT_OPTIONS = {
|
|
|
86
86
|
},
|
|
87
87
|
enter: (h) => {
|
|
88
88
|
// Set initial states
|
|
89
|
-
set(h.auxEl, {
|
|
89
|
+
set(h.auxEl, { y: '-100%' })
|
|
90
90
|
set(h.lis, { opacity: 0 })
|
|
91
91
|
|
|
92
92
|
// Auxiliary header slides down
|
|
93
93
|
animate(h.auxEl, {
|
|
94
|
-
|
|
94
|
+
y: '0%'
|
|
95
95
|
}, {
|
|
96
96
|
duration: 1,
|
|
97
97
|
delay: h.opts.enterDelay,
|
|
@@ -79,7 +79,7 @@ import { set } from '../../utils/motion-helpers'
|
|
|
79
79
|
const DEFAULT_EVENTS = {
|
|
80
80
|
onPin: (h) => {
|
|
81
81
|
animate(h.el, {
|
|
82
|
-
|
|
82
|
+
y: '0%'
|
|
83
83
|
}, {
|
|
84
84
|
duration: 0.35,
|
|
85
85
|
ease: 'easeOut'
|
|
@@ -89,7 +89,7 @@ const DEFAULT_EVENTS = {
|
|
|
89
89
|
onUnpin: (h) => {
|
|
90
90
|
h._hiding = true
|
|
91
91
|
animate(h.el, {
|
|
92
|
-
|
|
92
|
+
y: '-100%'
|
|
93
93
|
}, {
|
|
94
94
|
duration: 0.25,
|
|
95
95
|
ease: 'easeIn'
|
|
@@ -156,14 +156,14 @@ const DEFAULT_OPTIONS = {
|
|
|
156
156
|
canvas: window,
|
|
157
157
|
intersects: null,
|
|
158
158
|
beforeEnter: (h) => {
|
|
159
|
-
set(h.el, {
|
|
159
|
+
set(h.el, { y: '-100%' })
|
|
160
160
|
set(h.lis, { opacity: 0 })
|
|
161
161
|
},
|
|
162
162
|
|
|
163
163
|
enter: (h) => {
|
|
164
164
|
// Header slides down
|
|
165
165
|
animate(h.el, {
|
|
166
|
-
|
|
166
|
+
y: '0%'
|
|
167
167
|
}, {
|
|
168
168
|
duration: 1,
|
|
169
169
|
delay: h.opts.enterDelay,
|
|
@@ -81,7 +81,7 @@ import { set } from '../../utils/motion-helpers'
|
|
|
81
81
|
const DEFAULT_EVENTS = {
|
|
82
82
|
onPin: (h) => {
|
|
83
83
|
animate(h.el, {
|
|
84
|
-
|
|
84
|
+
y: '0%'
|
|
85
85
|
}, {
|
|
86
86
|
duration: 0.35,
|
|
87
87
|
ease: 'easeOut'
|
|
@@ -91,7 +91,7 @@ const DEFAULT_EVENTS = {
|
|
|
91
91
|
onUnpin: (h) => {
|
|
92
92
|
h._hiding = true
|
|
93
93
|
animate(h.el, {
|
|
94
|
-
|
|
94
|
+
y: '-100%'
|
|
95
95
|
}, {
|
|
96
96
|
duration: 0.25,
|
|
97
97
|
ease: 'easeIn'
|
|
@@ -158,14 +158,14 @@ const DEFAULT_OPTIONS = {
|
|
|
158
158
|
canvas: window,
|
|
159
159
|
intersects: null,
|
|
160
160
|
beforeEnter: (h) => {
|
|
161
|
-
set(h.el, {
|
|
161
|
+
set(h.el, { y: '-100%' })
|
|
162
162
|
set(h.lis, { opacity: 0 })
|
|
163
163
|
},
|
|
164
164
|
|
|
165
165
|
enter: (h) => {
|
|
166
166
|
// Header slides down
|
|
167
167
|
animate(h.el, {
|
|
168
|
-
|
|
168
|
+
y: '0%'
|
|
169
169
|
}, {
|
|
170
170
|
duration: 1,
|
|
171
171
|
delay: h.opts.enterDelay,
|
|
@@ -33,6 +33,8 @@ export function set(target, values) {
|
|
|
33
33
|
transformProps.push(`translateX(${typeof value === 'number' ? value + 'px' : value})`)
|
|
34
34
|
} else if (key === 'y') {
|
|
35
35
|
transformProps.push(`translateY(${typeof value === 'number' ? value + 'px' : value})`)
|
|
36
|
+
} else if (key === 'yPercent') {
|
|
37
|
+
transformProps.push(`translateY(${value}%)`)
|
|
36
38
|
} else if (key === 'scale') {
|
|
37
39
|
transformProps.push(`scale(${value})`)
|
|
38
40
|
} else if (key === 'scaleX') {
|