@brandocms/jupiter 3.46.2 → 3.46.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brandocms/jupiter",
3
- "version": "3.46.2",
3
+ "version": "3.46.3",
4
4
  "description": "Frontend helpers.",
5
5
  "author": "Univers/Twined",
6
6
  "license": "UNLICENSED",
@@ -318,8 +318,8 @@ export default class Moonwalk {
318
318
  * @param {*} section
319
319
  */
320
320
  setupNamesAndStages (section) {
321
- gsap.set(section.el, { opacity: 1 })
322
-
321
+ section.el.setAttribute('data-moonwalk-section-ready', '')
322
+
323
323
  if (!section.stage.name && !section.name) {
324
324
  return
325
325
  }
@@ -350,7 +350,11 @@ export default class Moonwalk {
350
350
  if (section.stage.name) {
351
351
  // reset the element to its `from` state.
352
352
  const stageTween = walks[section.stage.name]
353
- gsap.set(section.el, stageTween.transition.from)
353
+ if (!stageTween) {
354
+ console.error('==> JUPITER/MOONWALK: MISSING referenced moonwalk stage', section.stage.name)
355
+ } else {
356
+ gsap.set(section.el, stageTween.transition.from)
357
+ }
354
358
  }
355
359
 
356
360
  const observer = this.sectionObserver(section)